]> git.feebdaed.xyz Git - 0xmirror/SOEM.git/commitdiff
Add .clang-format
authorHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Mon, 2 Jun 2025 14:12:45 +0000 (16:12 +0200)
committerHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Wed, 9 Jul 2025 15:20:48 +0000 (17:20 +0200)
Change-Id: I48865eab483d0ed38d268c805d0007876971b924

.clang-format [new file with mode: 0644]

diff --git a/.clang-format b/.clang-format
new file mode 100644 (file)
index 0000000..8d89dbb
--- /dev/null
@@ -0,0 +1,26 @@
+---
+Language: Cpp
+AllowShortIfStatementsOnASingleLine: WithoutElse
+AlignConsecutiveMacros: AcrossEmptyLinesAndComments
+SortIncludes: false
+IndentWidth: 3
+UseTab: Never
+PointerAlignment: Right
+ColumnLimit: 0
+BreakBeforeBraces: Custom
+BraceWrapping:
+  AfterCaseLabel: true
+  AfterClass: true
+  AfterControlStatement: true
+  AfterEnum: true
+  AfterFunction: true
+  AfterNamespace: true
+  AfterStruct: true
+  AfterUnion: true
+  BeforeCatch: true
+  BeforeElse: true
+  IndentBraces: false
+  SplitEmptyFunction: true
+  SplitEmptyRecord: true
+  SplitEmptyNamespace: false
+  AfterExternBlock: false