ci(compiler): Add clang-tidy configuration file

Add configuration file for `clang-tidy` with the same settings as
MLIR.
This commit is contained in:
Andi Drebes
2021-06-07 11:56:52 +02:00
parent 2c4748b414
commit 5ef78f37f3

19
compiler/.clang-tidy Normal file
View File

@@ -0,0 +1,19 @@
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,readability-identifier-naming'
CheckOptions:
- 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