Add clang-format configuration

This commit is contained in:
Sebastian Ramacher 2022-05-07 23:06:55 +02:00
parent 2f0cdb95ec
commit b92388c31a

20
.clang-format Normal file
View File

@ -0,0 +1,20 @@
---
Language: Cpp
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignOperands: true
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: All
BreakBeforeBraces: Linux
ContinuationIndentWidth: 2
ColumnLimit: 120
ForEachMacros: ['GIRARA_LIST_FOREACH']
IndentWidth: 2
PointerAlignment: Left
TabWidth: 2
IndentCaseLabels: true
...