Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6afe656b authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by android-build-merger
Browse files

Merge "Define DEFAULT_TIDY_HEADER_DIRS." am: 9d66e2c2 am: 84be3dc5 am: 59ac6950

am: e28fd9f2

Change-Id: I40f077e04438e2b3c54887d82a782af460304aa3
parents c420ee4c e28fd9f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1649,7 +1649,7 @@ ifneq (,$(filter 1 true,$(my_tidy_enabled)))
    endif
    # If tidy flags are not specified, default to check all header files.
    ifeq ($(my_tidy_flags),)
      my_tidy_flags := -header-filter=.*
      my_tidy_flags := $(call default_tidy_header_filter,$(LOCAL_PATH))
    endif
  endif
endif
+22 −0
Original line number Diff line number Diff line
@@ -73,3 +73,25 @@ $(lastword \
  ) \
)
endef

# Give warnings to header files only in selected directories.
# Do not give warnings to external or vendor header files,
# which contain too many warnings.
DEFAULT_TIDY_HEADER_DIRS := \
     art/ \
    |bionic/ \
    |bootable/ \
    |build/ \
    |cts/ \
    |dalvik/ \
    |developers/ \
    |development/ \
    |frameworks/ \
    |libcore/ \
    |libnativehelper/ \
    |system/

# Default filter contains current directory $1 and DEFAULT_TIDY_HEADER_DIRS.
define default_tidy_header_filter
  -header-filter="($(subst $(space),,$1|$(DEFAULT_TIDY_HEADER_DIRS)))"
endef