Merge "Call clang-tidy with -fno-caret-diagnostics by default."

am: bd69b7daa7

Change-Id: I6b364d4b7daf1223d1dad12517ff786f9b9f9af7
This commit is contained in:
Chih-hung Hsieh 2018-01-04 19:13:45 +00:00 committed by android-build-merger
commit fd6ce3e672
1 changed files with 2 additions and 2 deletions

View File

@ -1721,13 +1721,13 @@ ifneq (,$(filter 1 true,$(my_tidy_enabled)))
endif
# If clang-tidy is not enabled globally, add the -quiet flag.
ifeq (,$(filter 1 true,$(WITH_TIDY)))
my_tidy_flags += -quiet
my_tidy_flags += -quiet -extra-arg-before=-fno-caret-diagnostics
endif
# We might be using the static analyzer through clang-tidy.
# https://bugs.llvm.org/show_bug.cgi?id=32914
ifneq ($(my_tidy_checks),)
my_tidy_flags += "-extra-arg-before=-D__clang_analyzer__"
my_tidy_flags += -extra-arg-before=-D__clang_analyzer__
endif
endif
endif