Add include directory to -header-filter

* Only add owned header directories.
* Do not add extra quotes around -header-filter argument,
  or the quotes will be part of the regex and fail to
  match header file paths.

Bug: 179530304
Test: make with WITH_TIDY=1
Change-Id: Icea867cb22264fb2dbbff079a1fc914bf48bbdef
This commit is contained in:
Chih-Hung Hsieh 2021-02-19 18:30:29 -08:00
parent 8c164946d8
commit 84006f5ab1
1 changed files with 6 additions and 0 deletions

View File

@ -243,6 +243,12 @@ cc_library_host_static {
generated_headers: ["platform_tools_version"],
tidy_flags: [
// DO NOT add quotes around header-filter flag regex argument,
// because build/soong will add quotes around the whole flag.
"-header-filter=(system/core/fastboot/|development/host/windows/usb/api/)",
],
target: {
windows: {
srcs: ["usb_windows.cpp"],