summaryrefslogtreecommitdiff
path: root/cc/compiler.go
diff options
context:
space:
mode:
author JaeMan Park <jaeman@google.com> 2024-01-05 15:29:48 +0900
committer JaeMan Park <jaeman@google.com> 2024-01-10 16:29:51 +0900
commit3dba4d2c60923dde665c11f6cb7ce6e81b987534 (patch)
treed17aec1a880ca5b0269bbf67c9a730442581a33e /cc/compiler.go
parentd06bdb031042ea448cc2a34fae9ccc4a50f63434 (diff)
Disable tidy checks for generated code
Generated codes like cpp code from *.ll for *.yy files always run clang-tidy, when generated code has warning, where is no way to fix it. So, disable clang-tidy for generated code. Bug: 162909698 Test: go test android/soong/cc Change-Id: I0fee137d6170ef4bf6cf641abad572e448aceaa1
Diffstat (limited to 'cc/compiler.go')
-rw-r--r--cc/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/compiler.go b/cc/compiler.go
index d7c4d4f4e..c57b72c1a 100644
--- a/cc/compiler.go
+++ b/cc/compiler.go
@@ -720,7 +720,7 @@ func (compiler *baseCompiler) compile(ctx ModuleContext, flags Flags, deps PathD
// Compile files listed in c.Properties.Srcs into objects
objs := compileObjs(ctx, buildFlags, "", srcs,
- android.PathsForModuleSrc(ctx, compiler.Properties.Tidy_disabled_srcs),
+ append(android.PathsForModuleSrc(ctx, compiler.Properties.Tidy_disabled_srcs), compiler.generatedSources...),
android.PathsForModuleSrc(ctx, compiler.Properties.Tidy_timeout_srcs),
pathDeps, compiler.cFlagsDeps)