summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-hung Hsieh <chh@google.com> 2021-02-17 18:34:48 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-02-17 18:34:48 +0000
commit9f9236ec56bc9bd62e506d61d38006972a56aa70 (patch)
tree31fe23127cfe20fc87307c037b4fb20d039931e4
parent43d4040f6f3f65b13673f03639b65f6c37c3ea8e (diff)
parent2e4fdbdda1a5ffba53ed025e6d04a16d40003325 (diff)
Merge "Do not append empty DEFAULT_TIDY_HEADER_DIRS"
-rw-r--r--core/clang/tidy.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/clang/tidy.mk b/core/clang/tidy.mk
index 868f7bc885..8a408785f2 100644
--- a/core/clang/tidy.mk
+++ b/core/clang/tidy.mk
@@ -36,7 +36,7 @@ $(lastword \
)
endef
-# Default filter contains current directory $1 and DEFAULT_TIDY_HEADER_DIRS.
+# Default filter contains current directory $1 and optional DEFAULT_TIDY_HEADER_DIRS.
define default_tidy_header_filter
- -header-filter="($(subst $(space),,$1|$(DEFAULT_TIDY_HEADER_DIRS)))"
+ -header-filter=$(if $(DEFAULT_TIDY_HEADER_DIRS),"($1/|$(DEFAULT_TIDY_HEADER_DIRS))",$1/)
endef