summaryrefslogtreecommitdiffstats
path: root/.clang-tidy
diff options
context:
space:
mode:
authorShivesh Mandalia <mail@shivesh.org>2022-04-16 18:23:12 +0100
committerShivesh Mandalia <mail@shivesh.org>2022-04-16 18:23:12 +0100
commita68a606a075c61529344fe0ffa28104af4aeb550 (patch)
tree4266ba972852205c9a3c2ebc578faf6622e4f752 /.clang-tidy
parent99b5c21bc9c7922a47253d5f1e72a8b75de7837f (diff)
downloadbasic_makefile-a68a606a075c61529344fe0ffa28104af4aeb550.tar.gz
basic_makefile-a68a606a075c61529344fe0ffa28104af4aeb550.zip
Add clang-format and clang-tidy files
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy31
1 files changed, 31 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..e225e47
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,31 @@
+---
+Checks: "*, \
+ -altera-struct-pack-align, \
+ -altera-unroll-loops, \
+ -altera-id-dependent-backward-branch, \
+ -bugprone-easily-swappable-parameters, \
+ -cppcoreguidelines-avoid-magic-numbers, \
+ -cppcoreguidelines-non-private-member-variables-in-classes, \
+ -fuchsia-default-arguments-calls, \
+ -fuchsia-default-arguments-declarations, \
+ -fuchsia-overloaded-operator, \
+ -fuchsia-trailing-return, \
+ -google-build-using-namespace, \
+ -google-runtime-int, \
+ -llvmlibc-callee-namespace, \
+ -llvmlibc-implementation-in-namespace, \
+ -llvmlibc-restrict-system-libc-headers, \
+ -modernize-use-trailing-return-type, \
+ -misc-non-private-member-variables-in-classes, \
+ -readability-magic-numbers"
+WarningsAsErrors: "*"
+HeaderFilterRegex: "."
+CheckOptions:
+ - { key: readability-identifier-naming.ClassCase, value: CamelCase }
+ - { key: readability-identifier-naming.EnumCase, value: CamelCase }
+ - { key: readability-identifier-naming.FunctionCase, value: lower_case }
+ - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
+ - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
+ - { key: readability-identifier-naming.PrivateMemberPrefix, value: m_ }
+ - { key: readability-identifier-naming.StructCase, value: CamelCase }
+ - { key: readability-function-cognitive-complexity.IgnoreMacros, value: "true" }