aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Beltran <ryanbeltran@chromium.org>2022-06-07 22:42:01 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-07 23:56:50 +0000
commitaa99b9ab4093f11c12b0c1ebdae57144f3dbb632 (patch)
tree9bafbfb80941b541d33c62c62228b7b694a14c33
parente1a6d6f9827d243fdb1200d4e9ac8b97c69bdec7 (diff)
downloadtoolchain-utils-aa99b9ab4093f11c12b0c1ebdae57144f3dbb632.tar.gz
compiler_wrapper: include header lints for tidy
This CL adds a flag to clang tidy invocations to prevent supressed lints in header files. BUG=b:187790543 TEST=None Change-Id: I9977818894899fc6c28f0c3d4121326ca854e1b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3694553 Commit-Queue: Ryan Beltran <ryanbeltran@chromium.org> Tested-by: Ryan Beltran <ryanbeltran@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org>
-rw-r--r--compiler_wrapper/clang_tidy_flag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler_wrapper/clang_tidy_flag.go b/compiler_wrapper/clang_tidy_flag.go
index 2d2565e0..bd1f9846 100644
--- a/compiler_wrapper/clang_tidy_flag.go
+++ b/compiler_wrapper/clang_tidy_flag.go
@@ -114,7 +114,7 @@ func runClangTidyForTricium(env env, clangCmd *command, cSrcFile, fixesDir strin
fixesFilePath := f.Name() + ".yaml"
fixesMetadataPath := f.Name() + ".json"
- extraTidyFlags = append(extraTidyFlags, "--export-fixes="+fixesFilePath)
+ extraTidyFlags = append(extraTidyFlags, "--export-fixes="+fixesFilePath, "--header-filter=.*")
clangTidyCmd, err := calcClangTidyInvocation(env, clangCmd, cSrcFile, extraTidyFlags...)
if err != nil {
return fmt.Errorf("calculating tidy invocation: %v", err)