forked from openkylin/platform_build
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:
parent
836c091756
commit
2e4fdbdda1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue