|
| 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 |
| 7 | +AlignConsecutiveDeclarations: false |
| 8 | +AlignEscapedNewlinesLeft: true |
| 9 | +AlignOperands: true |
| 10 | +AlignTrailingComments: false # churn |
| 11 | +AllowShortBlocksOnASingleLine: false |
| 12 | +AllowShortCaseLabelsOnASingleLine: false |
| 13 | +AllowShortFunctionsOnASingleLine: None |
| 14 | +AllowShortIfStatementsOnASingleLine: false |
| 15 | +AllowShortLoopsOnASingleLine: false |
| 16 | +AlwaysBreakAfterReturnType: None |
| 17 | +AlwaysBreakBeforeMultilineStrings: false |
| 18 | +BinPackArguments: false |
| 19 | +BinPackParameters: false |
| 20 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 21 | +AllowAllArgumentsOnNextLine: true |
| 22 | +BraceWrapping: |
| 23 | + AfterControlStatement: false |
| 24 | + AfterEnum: false |
| 25 | + AfterFunction: true |
| 26 | + AfterStruct: false |
| 27 | + AfterUnion: false |
| 28 | + BeforeElse: false |
| 29 | + IndentBraces: false |
| 30 | +BreakBeforeBinaryOperators: None |
| 31 | +BreakBeforeBraces: Custom |
| 32 | +BreakBeforeTernaryOperators: false |
| 33 | +BreakStringLiterals: true |
| 34 | +ColumnLimit: 120 |
| 35 | +ContinuationIndentWidth: 4 |
| 36 | +Cpp11BracedListStyle: false |
| 37 | +DerivePointerAlignment: false |
| 38 | +DisableFormat: false |
| 39 | +IncludeIsMainRegex: '$' |
| 40 | +IndentCaseLabels: false |
| 41 | +IndentWidth: 4 |
| 42 | +AccessModifierOffset: -4 |
| 43 | +IndentWrappedFunctionNames: false |
| 44 | +KeepEmptyLinesAtTheStartOfBlocks: false |
| 45 | +MacroBlockBegin: '.*_BEGIN$' # only PREC_BEGIN ? |
| 46 | +MacroBlockEnd: '.*_END$' |
| 47 | +MaxEmptyLinesToKeep: 2 |
| 48 | +PointerAlignment: Right |
| 49 | +ReflowComments: true |
| 50 | +SortIncludes: true |
| 51 | +SpaceAfterCStyleCast: false |
| 52 | +SpaceBeforeAssignmentOperators: true |
| 53 | +SpaceBeforeParens: ControlStatements |
| 54 | +SpaceInEmptyParentheses: false |
| 55 | +SpacesBeforeTrailingComments: 1 |
| 56 | +SpacesInContainerLiterals: true |
| 57 | +SpacesInParentheses: false |
| 58 | +SpacesInSquareBrackets: false |
| 59 | +Standard: Auto |
| 60 | +UseTab: Never |
| 61 | +... |
0 commit comments