[Mlir-commits] [mlir] 8c70c42 - Fix MLIR clang-tidy: when tweaking it does not inherit from the parent

Mehdi Amini llvmlistbot at llvm.org
Sat Mar 7 09:44:49 PST 2020


Author: Mehdi Amini
Date: 2020-03-07T17:44:21Z
New Revision: 8c70c42be25a31fffee2a2a9b8c638cb6d7ab49c

URL: https://github.com/llvm/llvm-project/commit/8c70c42be25a31fffee2a2a9b8c638cb6d7ab49c
DIFF: https://github.com/llvm/llvm-project/commit/8c70c42be25a31fffee2a2a9b8c638cb6d7ab49c.diff

LOG: Fix MLIR clang-tidy: when tweaking it does not inherit from the parent

It is almost identical to the top-level .clang-tidy, except that
{Member,Parameter,Variable}Case use camelBack.

Added: 
    

Modified: 
    mlir/.clang-tidy

Removed: 
    


################################################################################
diff  --git a/mlir/.clang-tidy b/mlir/.clang-tidy
index 5ed6429dab3e..87ec2ff53af6 100644
--- a/mlir/.clang-tidy
+++ b/mlir/.clang-tidy
@@ -1,4 +1,19 @@
-Checks: '-*,readability-identifier-naming'
+# Almost identical to the top-level .clang-tidy, except that {Member,Parameter,Variable}Case use camelBack.
+Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,readability-identifier-naming'
 CheckOptions:
-  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
-  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
+  - key:             readability-identifier-naming.ClassCase
+    value:           CamelCase
+  - key:             readability-identifier-naming.EnumCase
+    value:           CamelCase
+  - key:             readability-identifier-naming.FunctionCase
+    value:           camelBack
+  - key:             readability-identifier-naming.MemberCase
+    value:           camelBack
+  - key:             readability-identifier-naming.ParameterCase
+    value:           camelBack
+  - key:             readability-identifier-naming.UnionCase
+    value:           CamelCase
+  - key:             readability-identifier-naming.VariableCase
+    value:           camelBack
+  - key:             readability-identifier-naming.IgnoreMainLikeFunctions
+    value:           1


        


More information about the Mlir-commits mailing list