From 30171e1539d5f63491365d6363a74791d7d0432e Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 4 Mar 2020 13:13:47 -0800 Subject: compiler-wrapper: Update clang-tidy flags to match Android. The flags that we use to generate clang tidy warnings have gotten out of sync with the flags the Android team uses. This CL fixes that. BUG=None TEST=None Change-Id: I766af02fee111e2e2233612e8352de1fb0802c3b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2088431 Reviewed-by: George Burgess Reviewed-by: Manoj Gupta Commit-Queue: Caroline Tice Tested-by: Caroline Tice --- compiler_wrapper/clang_tidy_flag.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'compiler_wrapper/clang_tidy_flag.go') diff --git a/compiler_wrapper/clang_tidy_flag.go b/compiler_wrapper/clang_tidy_flag.go index 40a5bdbe..d8bf3cb2 100644 --- a/compiler_wrapper/clang_tidy_flag.go +++ b/compiler_wrapper/clang_tidy_flag.go @@ -38,23 +38,13 @@ func processClangTidyFlags(builder *commandBuilder) (cSrcFile string, useClangTi func runClangTidy(env env, clangCmd *command, cSrcFile string) error { defaultTidyChecks := strings.Join([]string{ "*", - "google*", "-bugprone-narrowing-conversions", "-cppcoreguidelines-*", "-fuchsia-*", - "-google-build-using-namespace", - "-google-default-arguments", - "-google-explicit-constructor", "-google-readability*", - "-google-runtime-int", "-google-runtime-references", - "-hicpp-avoid-c-arrays", - "-hicpp-braces-around-statements", - "-hicpp-no-array-decay", - "-hicpp-signed-bitwise", - "-hicpp-uppercase-literal-suffix", - "-hicpp-use-auto", - "-llvm-namespace-comment", + "-hicpp-*", + "-llvm-*", "-misc-non-private-member-variables-in-classes", "-misc-unused-parameters", "-modernize-*", -- cgit v1.2.3