From 298c9fae9370598a37896c002da6250c3b1a2313 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 4 Sep 2020 23:30:16 -0700 Subject: [PATCH] [NFC][compiler-rt] Refine .clang-tidy checks Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D87182 --- compiler-rt/.clang-tidy | 4 ++-- compiler-rt/lib/sanitizer_common/.clang-tidy | 16 ---------------- compiler-rt/test/.clang-tidy | 1 + 3 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 compiler-rt/lib/sanitizer_common/.clang-tidy create mode 100644 compiler-rt/test/.clang-tidy diff --git a/compiler-rt/.clang-tidy b/compiler-rt/.clang-tidy index e949902..4bad5ef 100644 --- a/compiler-rt/.clang-tidy +++ b/compiler-rt/.clang-tidy @@ -1,2 +1,2 @@ -# Checks enabled in the top-level .clang-tidy minus readability-identifier-naming -Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes' +# Checks enabled in the top-level .clang-tidy minus readability-identifier-naming and llvm-header-guard. +Checks: '-*,clang-diagnostic-*,llvm-*,-llvm-header-guard,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes' diff --git a/compiler-rt/lib/sanitizer_common/.clang-tidy b/compiler-rt/lib/sanitizer_common/.clang-tidy deleted file mode 100644 index 6c71abf..0000000 --- a/compiler-rt/lib/sanitizer_common/.clang-tidy +++ /dev/null @@ -1,16 +0,0 @@ -Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,readability-identifier-naming' -CheckOptions: - - key: readability-identifier-naming.ClassCase - value: CamelCase - - key: readability-identifier-naming.EnumCase - value: CamelCase - - key: readability-identifier-naming.FunctionCase - value: CamelCase - - key: readability-identifier-naming.UnionCase - value: CamelCase - - key: readability-identifier-naming.GlobalConstantCase - value: CamelCase - - key: readability-identifier-naming.GlobalConstantPrefix - value: "k" - - key: readability-identifier-naming.VariableCase - value: lower_case diff --git a/compiler-rt/test/.clang-tidy b/compiler-rt/test/.clang-tidy new file mode 100644 index 0000000..612bd0e --- /dev/null +++ b/compiler-rt/test/.clang-tidy @@ -0,0 +1 @@ +Checks: '-*' -- 2.7.4