| 1 |
# https://clang.llvm.org/docs/ClangFormat.html |
| 2 |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 3 |
--- |
| 4 |
Language: Cpp |
| 5 |
AlignAfterOpenBracket: Align |
| 6 |
AlignConsecutiveAssignments: false # although we like it, it creates churn |
| 7 |
AlignConsecutiveDeclarations: false |
| 8 |
AlignEscapedNewlinesLeft: true |
| 9 |
AlignOperands: true |
| 10 |
AlignTrailingComments: false # churn |
| 11 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 12 |
AllowShortBlocksOnASingleLine: false |
| 13 |
AllowShortCaseLabelsOnASingleLine: false |
| 14 |
AllowShortFunctionsOnASingleLine: None |
| 15 |
AllowShortIfStatementsOnASingleLine: false |
| 16 |
AllowShortLoopsOnASingleLine: false |
| 17 |
AlwaysBreakAfterReturnType: None # AlwaysBreakAfterDefinitionReturnType is taken into account |
| 18 |
AlwaysBreakBeforeMultilineStrings: false |
| 19 |
BinPackArguments: true |
| 20 |
BinPackParameters: true |
| 21 |
BraceWrapping: |
| 22 |
AfterControlStatement: false |
| 23 |
AfterEnum: false |
| 24 |
AfterFunction: true |
| 25 |
AfterStruct: false |
| 26 |
AfterUnion: false |
| 27 |
BeforeElse: false |
| 28 |
IndentBraces: false |
| 29 |
BreakBeforeBinaryOperators: None |
| 30 |
BreakBeforeBraces: Custom |
| 31 |
BreakBeforeTernaryOperators: false |
| 32 |
BreakStringLiterals: true |
| 33 |
ColumnLimit: 80 |
| 34 |
ContinuationIndentWidth: 4 |
| 35 |
Cpp11BracedListStyle: false |
| 36 |
DerivePointerAlignment: false |
| 37 |
DisableFormat: false |
| 38 |
IndentCaseLabels: false |
| 39 |
IndentWidth: 4 |
| 40 |
IndentWrappedFunctionNames: false |
| 41 |
KeepEmptyLinesAtTheStartOfBlocks: false |
| 42 |
MacroBlockBegin: '.*_BEGIN$' # only PREC_BEGIN ? |
| 43 |
MacroBlockEnd: '.*_END$' |
| 44 |
MaxEmptyLinesToKeep: 2 |
| 45 |
PointerAlignment: Right |
| 46 |
ReflowComments: true |
| 47 |
SortIncludes: false |
| 48 |
SpaceAfterCStyleCast: false |
| 49 |
SpaceBeforeAssignmentOperators: true |
| 50 |
SpaceBeforeParens: ControlStatements |
| 51 |
SpaceInEmptyParentheses: false |
| 52 |
SpacesBeforeTrailingComments: 1 |
| 53 |
SpacesInContainerLiterals: true |
| 54 |
SpacesInParentheses: false |
| 55 |
SpacesInSquareBrackets: false |
| 56 |
Standard: Auto |
| 57 |
UseTab: Never |
| 58 |
... |