aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-10 13:12:53 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-10 13:12:53 +0200
commitbd702f9ddc6a309397f22309f07390b615aab766 (patch)
tree208973c77ba5337ebfbf9b7a8738124f87255868
parent923446b1345e58bc949a71ca8a5ba2c1aa4bf3a2 (diff)
parent1805d0b3cf4d838f7d3e06489ab106fb2b2fc3de (diff)
Merge branch 'clang-tidy'
-rw-r--r--.clang-tidy16
-rw-r--r--.editorconfig8
2 files changed, 24 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..054a943
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,16 @@
+Checks: '-*,readability-identifier-naming'
+CheckOptions:
+ - { key: readability-identifier-naming.FunctionCase, value: lower_case }
+ - { key: readability-identifier-naming.FunctionPrefix, value: w2_ }
+ - { key: readability-identifier-naming.GlobalVariableCase, value: lower_case }
+ - { key: readability-identifier-naming.GlobalVariablePrefix, value: g_w2_ }
+ - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
+ - { key: readability-identifier-naming.GlobalConstantPrefix, value: W2_ }
+ - { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
+ - { key: readability-identifier-naming.MacroDefinitionPrefix, value: W2_ }
+ - { key: readability-identifier-naming.StructCase, value: lower_case }
+ - { key: readability-identifier-naming.StructPrefix, value: w2_s_ }
+ - { key: readability-identifier-naming.EnumCase, value: lower_case }
+ - { key: readability-identifier-naming.EnumPrefix, value: w2_e_ }
+
+# vim: ft=yaml
diff --git a/.editorconfig b/.editorconfig
index a54d21c..a9383e8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,3 +1,11 @@
+root = true
+
[*]
indent_style = tab
indent_size = 4
+end_of_line = lf
+insert_final_newline = true
+
+[*.md]
+indent_style = space
+indent_size = 2