Do not append empty DEFAULT_TIDY_HEADER_DIRS

* Default value will be empty and not work in -header-filter.

Bug: 179530304
Test: make with WITH_TIDY=1 and various setting of DEFAULT_TIDY_HEADER_DIRS
Change-Id: I3f784f545acd12285a5bf6dcae1bab42c9185fe7
This commit is contained in:
Chih-Hung Hsieh 2021-02-10 22:15:31 -08:00
parent 836c091756
commit 2e4fdbdda1
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ $(lastword \
) )
endef 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 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 endef