aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /.clang-format
move to own git serverHEADmaster
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format48
1 files changed, 48 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..777ad0a
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,48 @@
+BasedOnStyle: LLVM
+
+UseTab: Never
+IndentWidth: 4
+TabWidth: 4
+
+BraceWrapping:
+ AfterControlStatement: false
+ AfterFunction: false
+ AfterEnum: false
+ AfterClass: false
+ AfterStruct: false
+ BeforeElse: false
+ IndentBraces: false
+
+BreakBeforeBraces: Attach
+
+AllowShortBlocksOnASingleLine: true
+AllowShortIfStatementsOnASingleLine: true
+AllowShortLoopsOnASingleLine: true
+AllowShortFunctionsOnASingleLine: Inline
+AllowShortCaseLabelsOnASingleLine: true
+
+SpaceBeforeParens: Custom
+SpaceBeforeParensOptions:
+ AfterControlStatements: false
+ BeforeNonEmptyParentheses: false
+ AfterFunctionDefinitionName: true
+SpacesBeforeTrailingComments: 3
+SpaceInEmptyParentheses: false
+
+SpacesInParentheses: true
+SpacesInSquareBrackets: false
+
+PointerAlignment: Left
+DerivePointerAlignment: false
+
+AlignConsecutiveDeclarations: true
+AlignConsecutiveAssignments: true
+AlignConsecutiveMacros: false
+
+ColumnLimit: 0 # Do not reflow long lines/comments
+
+SortIncludes: Never
+IncludeBlocks: Preserve
+
+IndentCaseLabels: false
+