forked from openkylin/platform_build
Merge "Call clang-tidy with -fno-caret-diagnostics by default." am: bd69b7daa7
am: fd6ce3e672
Change-Id: I05de621349dc6a7935e3c7a5a6eb34919358872f
This commit is contained in:
commit
b9723e711f
|
@ -1721,13 +1721,13 @@ ifneq (,$(filter 1 true,$(my_tidy_enabled)))
|
||||||
endif
|
endif
|
||||||
# If clang-tidy is not enabled globally, add the -quiet flag.
|
# If clang-tidy is not enabled globally, add the -quiet flag.
|
||||||
ifeq (,$(filter 1 true,$(WITH_TIDY)))
|
ifeq (,$(filter 1 true,$(WITH_TIDY)))
|
||||||
my_tidy_flags += -quiet
|
my_tidy_flags += -quiet -extra-arg-before=-fno-caret-diagnostics
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# We might be using the static analyzer through clang-tidy.
|
# We might be using the static analyzer through clang-tidy.
|
||||||
# https://bugs.llvm.org/show_bug.cgi?id=32914
|
# https://bugs.llvm.org/show_bug.cgi?id=32914
|
||||||
ifneq ($(my_tidy_checks),)
|
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
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue