From 127004138c12f32ac953ba744c5cc7c9ce04e5f3 Mon Sep 17 00:00:00 2001
From: Hannes Feldt <feldt@astron.nl>
Date: Wed, 29 Mar 2023 08:35:37 +0000
Subject: [PATCH] Wrong formatting settings clang-tidy in C++ template project

---
 .clang-tidy   | 17 ++++++++++-------
 .editorconfig | 19 +++++++++++++++++++
 .gitignore    |  3 +++
 3 files changed, 32 insertions(+), 7 deletions(-)
 create mode 100644 .editorconfig

diff --git a/.clang-tidy b/.clang-tidy
index c971f37..ef96a91 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,16 +1,19 @@
-Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
+Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming,readability-braces-around-statements'
 CheckOptions:
   - key:             readability-identifier-naming.ClassCase
     value:           CamelCase
   - key:             readability-identifier-naming.EnumCase
     value:           CamelCase
+  - key:             readability-identifier-naming.UnionCase
+    value:           CamelCase
+# Within ASTRON no specific casing is used. We suggest to use
+# these settings, but feel free to adjust  following casings
+# for existing projects or personal/team preferences.
   - key:             readability-identifier-naming.FunctionCase
-    value:           camelBack
-  - key:             readability-identifier-naming.MemberCase
     value:           CamelCase
+  - key:             readability-identifier-naming.MemberCase
+    value:           lower_case
   - key:             readability-identifier-naming.ParameterCase
-    value:           CamelCase
-  - key:             readability-identifier-naming.UnionCase
-    value:           CamelCase
+    value:           lower_case
   - key:             readability-identifier-naming.VariableCase
-    value:           CamelCase
+    value:           lower_case
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..580df8c
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,19 @@
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+charset = utf-8
+end_of_line = lf
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+indent_size = 4
+
+# Tab indentation (no size specified)
+[Makefile]
+indent_style = tab
+
+[{CMakeLists.txt,*.cmake,*.rst}]
+indent_size = 2
+indent_style = space
diff --git a/.gitignore b/.gitignore
index 6f31401..a6a214a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
 build/
 .vscode/
+
+cmake-build-debug/
+.idea/
-- 
GitLab