Loading cc/config/global.go +8 −2 Original line number Diff line number Diff line Loading @@ -230,6 +230,9 @@ var ( "-Wno-string-concatenation", // http://b/175068488 // New warnings to be fixed after clang-r428724 "-Wno-align-mismatch", // http://b/193679946 // New warnings to be fixed after clang-r433403 "-Wno-error=unused-but-set-variable", // http://b/197240255 "-Wno-error=unused-but-set-parameter", // http://b/197240255 } // Extra cflags for external third-party projects to disable warnings that Loading @@ -255,6 +258,9 @@ var ( // http://b/165945989 "-Wno-psabi", // http://b/199369603 "-Wno-null-pointer-subtraction", } IllegalFlags = []string{ Loading @@ -268,8 +274,8 @@ var ( // prebuilts/clang default settings. ClangDefaultBase = "prebuilts/clang/host" ClangDefaultVersion = "clang-r428724" ClangDefaultShortVersion = "13.0.1" ClangDefaultVersion = "clang-r433403" ClangDefaultShortVersion = "13.0.2" // Directories with warnings from Android.bp files. WarningAllowedProjects = []string{ Loading cc/tidy.go +3 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,9 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags { tidyChecks = tidyChecks + ",-bugprone-branch-clone" // http://b/193716442 tidyChecks = tidyChecks + ",-bugprone-implicit-widening-of-multiplication-result" // Too many existing functions trigger this rule, and fixing it requires large code // refactoring. The cost of maintaining this tidy rule outweighs the benefit it brings. tidyChecks = tidyChecks + ",-bugprone-easily-swappable-parameters" flags.TidyFlags = append(flags.TidyFlags, tidyChecks) if ctx.Config().IsEnvTrue("WITH_TIDY") { Loading Loading
cc/config/global.go +8 −2 Original line number Diff line number Diff line Loading @@ -230,6 +230,9 @@ var ( "-Wno-string-concatenation", // http://b/175068488 // New warnings to be fixed after clang-r428724 "-Wno-align-mismatch", // http://b/193679946 // New warnings to be fixed after clang-r433403 "-Wno-error=unused-but-set-variable", // http://b/197240255 "-Wno-error=unused-but-set-parameter", // http://b/197240255 } // Extra cflags for external third-party projects to disable warnings that Loading @@ -255,6 +258,9 @@ var ( // http://b/165945989 "-Wno-psabi", // http://b/199369603 "-Wno-null-pointer-subtraction", } IllegalFlags = []string{ Loading @@ -268,8 +274,8 @@ var ( // prebuilts/clang default settings. ClangDefaultBase = "prebuilts/clang/host" ClangDefaultVersion = "clang-r428724" ClangDefaultShortVersion = "13.0.1" ClangDefaultVersion = "clang-r433403" ClangDefaultShortVersion = "13.0.2" // Directories with warnings from Android.bp files. WarningAllowedProjects = []string{ Loading
cc/tidy.go +3 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,9 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags { tidyChecks = tidyChecks + ",-bugprone-branch-clone" // http://b/193716442 tidyChecks = tidyChecks + ",-bugprone-implicit-widening-of-multiplication-result" // Too many existing functions trigger this rule, and fixing it requires large code // refactoring. The cost of maintaining this tidy rule outweighs the benefit it brings. tidyChecks = tidyChecks + ",-bugprone-easily-swappable-parameters" flags.TidyFlags = append(flags.TidyFlags, tidyChecks) if ctx.Config().IsEnvTrue("WITH_TIDY") { Loading