[compiler-rt] Add .clang-tidy with customization to disable readability-identifier...
authorFangrui Song <i@maskray.me>
Fri, 4 Sep 2020 23:05:20 +0000 (16:05 -0700)
committerFangrui Song <i@maskray.me>
Fri, 4 Sep 2020 23:05:20 +0000 (16:05 -0700)
Copied from lldb/.clang-tidy (D75810).

Most compiler-rt code actually uses variableName or variable_name but not VariableName.
Lots of functions use `__function_name` and FunctionName instead of functionName.
Just exclude readability-identifier-naming.

compiler-rt/.clang-tidy [new file with mode: 0644]

diff --git a/compiler-rt/.clang-tidy b/compiler-rt/.clang-tidy
new file mode 100644 (file)
index 0000000..e949902
--- /dev/null
@@ -0,0 +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'