summaryrefslogtreecommitdiff
path: root/na/.clang-format
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-21 23:03:16 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-21 23:03:16 +0800
commit1fe056570220411bdb409c26e7580443a7bd9f4a (patch)
tree8a206d356ba54223a5c704d5a9a650f163bf03a0 /na/.clang-format
parente2564d112ba03b432f9f44f445cbc4a3ed85751a (diff)
downloadlume-1fe056570220411bdb409c26e7580443a7bd9f4a.tar.gz
lume-1fe056570220411bdb409c26e7580443a7bd9f4a.tar.xz
feat: add .clang-format and .clang-tidy configuration files for code formatting and linting
Diffstat (limited to 'na/.clang-format')
-rw-r--r--na/.clang-format35
1 files changed, 35 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