aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy68
1 files changed, 68 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..227c129
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,68 @@
+---
+# ATP Engine clang-tidy configuration
+#
+# Enable categories incrementally — start strict on the code we write,
+# avoid noise from auto-generated code (ANTLR4).
+
+Checks: >
+ -*,
+ bugprone-*,
+ -bugprone-easily-swappable-parameters,
+ clang-analyzer-*,
+ cppcoreguidelines-*,
+ -cppcoreguidelines-avoid-magic-numbers,
+ -cppcoreguidelines-pro-type-reinterpret-cast,
+ -cppcoreguidelines-pro-bounds-pointer-arithmetic,
+ -cppcoreguidelines-owning-memory,
+ misc-*,
+ -misc-non-private-member-variables-in-classes,
+ modernize-*,
+ -modernize-use-trailing-return-type,
+ performance-*,
+ readability-*,
+ -readability-magic-numbers,
+ -readability-identifier-length,
+
+WarningsAsErrors: ''
+
+HeaderFilterRegex: 'include/atp/.*\.h$'
+
+CheckOptions:
+ - key: readability-identifier-naming.NamespaceCase
+ value: lower_case
+ - key: readability-identifier-naming.ClassCase
+ value: CamelCase
+ - key: readability-identifier-naming.StructCase
+ value: CamelCase
+ - key: readability-identifier-naming.FunctionCase
+ value: camelBack
+ - key: readability-identifier-naming.VariableCase
+ value: lower_case
+ - key: readability-identifier-naming.MemberCase
+ value: lower_case
+ - key: readability-identifier-naming.MemberSuffix
+ value: '_'
+ - key: readability-identifier-naming.ConstantCase
+ value: CamelCase
+ - key: readability-identifier-naming.ConstantPrefix
+ value: k
+ - key: readability-identifier-naming.EnumConstantCase
+ value: CamelCase
+ - key: readability-identifier-naming.EnumConstantPrefix
+ value: k
+ - key: readability-identifier-naming.ConstexprVariableCase
+ value: CamelCase
+ - key: readability-identifier-naming.ConstexprVariablePrefix
+ value: k
+ - key: readability-identifier-naming.GlobalConstantCase
+ value: CamelCase
+ - key: readability-identifier-naming.GlobalConstantPrefix
+ value: k
+ - key: readability-identifier-naming.TemplateParameterCase
+ value: CamelCase
+ - key: performance-move-const-arg.CheckTriviallyCopyableMove
+ value: false
+ - key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
+ value: true
+ - key: readability-function-cognitive-complexity.Threshold
+ value: 25