aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy90
1 files changed, 90 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..869e9a8
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,90 @@
+Checks: >
+ *,
+ -abseil-*,
+ -altera-*,
+ -android-*,
+ -boost-*,
+ -bugprone-easily-swappable-parameters,
+ -cert-*,
+ -clang-analyzer-*,
+ -cppcoreguidelines-*,
+ -darwin-*,
+ -fuchsia-*,
+ -google-*,
+ -hicpp-*,
+ -linuxkernel-*,
+ -llvm-*,
+ -llvmlibc-*,
+ -mpi-*,
+ -objc-*,
+ -openmp-*,
+ -performance-faster-string-find,
+ -readability-avoid-nested-conditional-operator,
+ -readability-braces-around-statements,
+ -readability-function-cognitive-complexity,
+ -readability-identifier-length,
+ -readability-magic-numbers,
+ -zircon-*
+
+CheckOptions:
+ - key: readability-identifier-naming.DefaultCase
+ value: lower_case
+
+ - key: readability-identifier-naming.MacroDefinitionCase
+ value: UPPER_CASE
+ - key: readability-identifier-naming.MacroDefinitionIgnoredRegexp
+ value: ^[A-Z_0-9]+$
+
+ - key: readability-identifier-naming.StructCase
+ value: Camel_Snake_Case
+ - key: readability-identifier-naming.UnionCase
+ value: Camel_Snake_Case
+ - key: readability-identifier-naming.EnumCase
+ value: Camel_Snake_Case
+ - key: readability-identifier-naming.EnumConstantCase
+ value: UPPER_CASE
+ - key: readability-identifier-naming.TypedefCase
+ value: Camel_Snake_Case
+
+ - key: readability-identifier-naming.MemberCase
+ value: lower_case
+ - key: readability-identifier-naming.MemberIgnoredRegexp
+ value: ^_pad$
+
+ - key: readability-identifier-naming.GlobalVariableCase
+ value: lower_case
+ - key: readability-identifier-naming.GlobalVariableSuffix
+ value: _g
+
+ - key: readability-identifier-naming.ConstexprVariableCase
+ value: UPPER_CASE
+
+ - key: readability-identifier-naming.LocalPointerCase
+ value: lower_case
+ - key: readability-identifier-naming.LocalPointerSuffix
+ value: _p
+
+ - key: readability-identifier-naming.PointerParameterCase
+ value: lower_case
+ - key: readability-identifier-naming.PointerParameterSuffix
+ value: _p
+
+ - key: readability-identifier-naming.StaticVariableCase
+ value: lower_case
+ - key: readability-identifier-naming.StaticVariableSuffix
+ value: _s
+
+ - key: readability-identifier-naming.GlobalPointerCase
+ value: lower_case
+ - key: readability-identifier-naming.GlobalPointerSuffix
+ value: _p_g
+
+ - key: readability-identifier-naming.StaticConstantCase
+ value: UPPER_CASE
+ - key: readability-identifier-naming.StaticConstantSuffix
+ value: _S
+
+ - key: readability-identifier-naming.StaticConstexprVariableCase
+ value: UPPER_CASE
+ - key: readability-identifier-naming.StaticConstexprVariableSuffix
+ value: _S