summaryrefslogtreecommitdiff
path: root/na
diff options
context:
space:
mode:
Diffstat (limited to 'na')
-rw-r--r--na/.clang-format35
-rw-r--r--na/.clang-tidy23
2 files changed, 58 insertions, 0 deletions
diff --git a/na/.clang-format b/na/.clang-format
new file mode 100644
index 0000000..141e1e2
--- /dev/null
+++ b/na/.clang-format
@@ -0,0 +1,35 @@
+Language: Cpp
+Standard: c++23
+BasedOnStyle: Google
+
+# Core Formatting
+IndentWidth: 4
+ColumnLimit: 100
+TabWidth: 4
+UseTab: Never
+
+# Pointers and References
+PointerAlignment: Left
+ReferenceAlignment: Left
+
+# Includes
+SortIncludes: true
+
+# Alignment
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignConsecutiveMacros: true
+
+# Control Statements
+BreakBeforeBraces: Attach
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: Empty
+
+# Spaces
+SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: false
+SpacesInAngles: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+SpaceAfterTemplateKeyword: true
diff --git a/na/.clang-tidy b/na/.clang-tidy
new file mode 100644
index 0000000..1af2c5a
--- /dev/null
+++ b/na/.clang-tidy
@@ -0,0 +1,23 @@
+Checks: >
+ -*,
+ clang-analyzer-*,
+ performance-*,
+ bugprone-*,
+ readability-*,
+ misc-*,
+ modernize-*,
+ -modernize-use-trailing-return-type,
+ -modernize-use-nodiscard,
+ -readability-identifier-length
+
+WarningsAsErrors: ''
+HeaderFilterRegex: '.*'
+FormatStyle: 'file'
+CheckOptions:
+ readability-identifier-naming.ClassCase: PascalCase
+ readability-identifier-naming.StructCase: PascalCase
+ readability-identifier-naming.VariableCase: lower_case
+ readability-identifier-naming.FunctionCase: lower_case
+ readability-identifier-naming.GlobalVariableCase: lower_case
+ readability-identifier-naming.GlobalVariablePrefix: g_
+ readability-identifier-naming.PrivateMemberSuffix: _