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

am: fd6ce3e672

Change-Id: I05de621349dc6a7935e3c7a5a6eb34919358872f
This commit is contained in:
Chih-hung Hsieh 2018-01-04 19:17:18 +00:00 committed by android-build-merger
commit b9723e711f
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