[NFC][compiler-rt] Refine .clang-tidy checks
authorVitaly Buka <vitalybuka@google.com>
Sat, 5 Sep 2020 06:30:16 +0000 (23:30 -0700)
committerVitaly Buka <vitalybuka@google.com>
Sat, 5 Sep 2020 22:42:15 +0000 (15:42 -0700)
Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D87182

compiler-rt/.clang-tidy
compiler-rt/lib/sanitizer_common/.clang-tidy [deleted file]
compiler-rt/test/.clang-tidy [new file with mode: 0644]

index e949902..4bad5ef 100644 (file)
@@ -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 (file)
index 6c71abf..0000000
+++ /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 (file)
index 0000000..612bd0e
--- /dev/null
@@ -0,0 +1 @@
+Checks: '-*'