Use DEFAULT_TIDY_HEADER_DIRS env variable.
am: 60bd4bf079
Change-Id: I4c34db5d306beb15cf8160aa905c06b8459ea8f6
This commit is contained in:
@@ -61,20 +61,25 @@ func init() {
|
|||||||
// Give warnings to header files only in selected directories.
|
// Give warnings to header files only in selected directories.
|
||||||
// Do not give warnings to external or vendor header files, which contain too
|
// Do not give warnings to external or vendor header files, which contain too
|
||||||
// many warnings.
|
// many warnings.
|
||||||
pctx.StaticVariable("TidyDefaultHeaderDirs", strings.Join([]string{
|
pctx.VariableFunc("TidyDefaultHeaderDirs", func(ctx android.PackageVarContext) string {
|
||||||
"art/",
|
if override := ctx.Config().Getenv("DEFAULT_TIDY_HEADER_DIRS"); override != "" {
|
||||||
"bionic/",
|
return override
|
||||||
"bootable/",
|
}
|
||||||
"build/",
|
return strings.Join([]string{
|
||||||
"cts/",
|
"art/",
|
||||||
"dalvik/",
|
"bionic/",
|
||||||
"developers/",
|
"bootable/",
|
||||||
"development/",
|
"build/",
|
||||||
"frameworks/",
|
"cts/",
|
||||||
"libcore/",
|
"dalvik/",
|
||||||
"libnativehelper/",
|
"developers/",
|
||||||
"system/",
|
"development/",
|
||||||
}, "|"))
|
"frameworks/",
|
||||||
|
"libcore/",
|
||||||
|
"libnativehelper/",
|
||||||
|
"system/",
|
||||||
|
}, "|")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
type PathBasedTidyCheck struct {
|
type PathBasedTidyCheck struct {
|
||||||
|
Reference in New Issue
Block a user