Merge "make: add __clang_analyzer__ to clang-tidy"

am: 57273013cf

Change-Id: Iea1d4ded4dc9e2d5d461358cf5c6cff6dcb68bfd
This commit is contained in:
George Burgess IV 2017-05-10 04:48:31 +00:00 committed by android-build-merger
commit c352502062
1 changed files with 6 additions and 0 deletions

View File

@ -1684,6 +1684,12 @@ ifneq (,$(filter 1 true,$(my_tidy_enabled)))
ifeq ($(my_tidy_flags),)
my_tidy_flags := $(call default_tidy_header_filter,$(LOCAL_PATH))
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__"
endif
endif
endif