Reduce default global google-* clang-tidy checks am: 8212621410

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2099984

Change-Id: Ic91834f4805e0b102fea08c9e414198577aae94c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chih-Hung Hsieh 2022-05-19 07:55:49 +00:00 committed by Automerger Merge Worker
commit 60351d1944

View file

@ -35,14 +35,22 @@ func init() {
"bugprone-*", "bugprone-*",
"cert-*", "cert-*",
"clang-diagnostic-unused-command-line-argument", "clang-diagnostic-unused-command-line-argument",
"google-*", // Select only google-* checks that do not have thousands of warnings.
// Add more such checks when we clean up source code.
// "google-build-using-namespace",
// "google-default-arguments",
// "google-explicit-constructor",
// "google-global-names-in-headers",
// "google-runtime-int",
"google-build-explicit-make-pair",
"google-build-namespaces",
"google-runtime-operator",
"google-upgrade-*",
"misc-*", "misc-*",
"performance-*", "performance-*",
"portability-*", "portability-*",
"-bugprone-easily-swappable-parameters", "-bugprone-easily-swappable-parameters",
"-bugprone-narrowing-conversions", "-bugprone-narrowing-conversions",
"-google-readability*",
"-google-runtime-references",
"-misc-no-recursion", "-misc-no-recursion",
"-misc-non-private-member-variables-in-classes", "-misc-non-private-member-variables-in-classes",
"-misc-unused-parameters", "-misc-unused-parameters",
@ -79,13 +87,10 @@ func init() {
return strings.Join([]string{ return strings.Join([]string{
"-*", "-*",
"clang-diagnostic-unused-command-line-argument", "clang-diagnostic-unused-command-line-argument",
"google*", "google-build-explicit-make-pair",
"-google-build-using-namespace", "google-build-namespaces",
"-google-default-arguments", "google-runtime-operator",
"-google-explicit-constructor", "google-upgrade-*",
"-google-readability*",
"-google-runtime-int",
"-google-runtime-references",
}, ",") }, ",")
}) })