Add .clang-format

Change-Id: I48865eab483d0ed38d268c805d0007876971b924
This commit is contained in:
Hans-Erik Floryd
2025-06-02 16:12:45 +02:00
parent 9582886c2c
commit c5987aead6

26
.clang-format Normal file
View File

@@ -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