Merge "Filter out clang-tidy unknown arguments."
am: 875691cf89
Change-Id: I213cba2633df3d5de2ecc072ca4569f894c64ee8
This commit is contained in:
@@ -105,6 +105,9 @@ ALL_VINTF_MANIFEST_FRAGMENTS_LIST:=
|
|||||||
# All tests that should be skipped in presubmit check.
|
# All tests that should be skipped in presubmit check.
|
||||||
ALL_DISABLED_PRESUBMIT_TESTS :=
|
ALL_DISABLED_PRESUBMIT_TESTS :=
|
||||||
|
|
||||||
|
# CLANG_TIDY_UNKNOWN_CFLAGS is generated by build/soong.
|
||||||
|
sanitize_tidy_cflags = $(filter-out $(CLANG_TIDY_UNKNOWN_CFLAGS),$1)
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
## Debugging; prints a variable list to stdout
|
## Debugging; prints a variable list to stdout
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -1264,7 +1267,7 @@ endef
|
|||||||
define clang-tidy-cpp
|
define clang-tidy-cpp
|
||||||
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
||||||
-checks=$(PRIVATE_TIDY_CHECKS) \
|
-checks=$(PRIVATE_TIDY_CHECKS) \
|
||||||
$< -- $(transform-cpp-to-o-compiler-args)
|
$< -- $(call sanitize_tidy_cflags,$(transform-cpp-to-o-compiler-args))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
||||||
@@ -1312,7 +1315,7 @@ endef
|
|||||||
define clang-tidy-c
|
define clang-tidy-c
|
||||||
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
||||||
-checks=$(PRIVATE_TIDY_CHECKS) \
|
-checks=$(PRIVATE_TIDY_CHECKS) \
|
||||||
$< -- $(transform-c-to-o-compiler-args)
|
$< -- $(call sanitize_tidy_cflags,$(transform-c-to-o-compiler-args))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
||||||
@@ -1382,7 +1385,7 @@ endef
|
|||||||
define clang-tidy-host-cpp
|
define clang-tidy-host-cpp
|
||||||
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
||||||
-checks=$(PRIVATE_TIDY_CHECKS) \
|
-checks=$(PRIVATE_TIDY_CHECKS) \
|
||||||
$< -- $(transform-host-cpp-to-o-compiler-args)
|
$< -- $(call sanitize_tidy_cflags,$(transform-host-cpp-to-o-compiler-args))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
||||||
@@ -1434,7 +1437,7 @@ endef
|
|||||||
define clang-tidy-host-c
|
define clang-tidy-host-c
|
||||||
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
$(hide) $(PATH_TO_CLANG_TIDY) $(PRIVATE_TIDY_FLAGS) \
|
||||||
-checks=$(PRIVATE_TIDY_CHECKS) \
|
-checks=$(PRIVATE_TIDY_CHECKS) \
|
||||||
$< -- $(transform-host-c-to-o-compiler-args)
|
$< -- $(call sanitize_tidy_cflags,$(transform-host-c-to-o-compiler-args))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
ifneq (,$(filter 1 true,$(WITH_TIDY_ONLY)))
|
||||||
|
Reference in New Issue
Block a user