From 84006f5ab18ef434b2da40853405d40d7982317b Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 19 Feb 2021 18:30:29 -0800 Subject: [PATCH] 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 --- fastboot/Android.bp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fastboot/Android.bp b/fastboot/Android.bp index 85a19e589..847c869eb 100644 --- a/fastboot/Android.bp +++ b/fastboot/Android.bp @@ -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"],