|
| 1 | +# the official .clang-format style for https://github.com/taocpp |
| 2 | +# |
| 3 | +# clang-format-5.0 -i -style=file $(find . -name '[^.]*.[hc]pp') |
| 4 | + |
| 5 | +Language: Cpp |
| 6 | +Standard: Cpp11 |
| 7 | + |
| 8 | +AccessModifierOffset: -3 |
| 9 | +AlignAfterOpenBracket: Align |
| 10 | +AlignConsecutiveAssignments: false |
| 11 | +AlignConsecutiveDeclarations: false |
| 12 | +AlignEscapedNewlinesLeft: false |
| 13 | +AlignOperands: true |
| 14 | +AlignTrailingComments: true |
| 15 | +AllowAllParametersOfDeclarationOnNextLine: true |
| 16 | +AllowShortBlocksOnASingleLine: false |
| 17 | +AllowShortCaseLabelsOnASingleLine: false |
| 18 | +AllowShortFunctionsOnASingleLine: Empty |
| 19 | +AllowShortIfStatementsOnASingleLine: false |
| 20 | +AllowShortLoopsOnASingleLine: false |
| 21 | +AlwaysBreakAfterReturnType: None |
| 22 | +AlwaysBreakBeforeMultilineStrings: false |
| 23 | +AlwaysBreakTemplateDeclarations: true |
| 24 | +BinPackArguments: false |
| 25 | +BinPackParameters: false |
| 26 | +BraceWrapping: |
| 27 | + AfterClass: true |
| 28 | + AfterControlStatement: false |
| 29 | + AfterEnum : true |
| 30 | + AfterFunction : true |
| 31 | + AfterNamespace : true |
| 32 | + AfterStruct : true |
| 33 | + AfterUnion : true |
| 34 | + BeforeCatch : true |
| 35 | + BeforeElse : true |
| 36 | + IndentBraces : false |
| 37 | +BreakBeforeBinaryOperators: All |
| 38 | +BreakBeforeBraces: Custom |
| 39 | +BreakBeforeTernaryOperators: false |
| 40 | +BreakStringLiterals: false |
| 41 | +BreakConstructorInitializersBeforeComma: false |
| 42 | +ColumnLimit: 0 |
| 43 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 44 | +ConstructorInitializerIndentWidth: 3 |
| 45 | +ContinuationIndentWidth: 3 |
| 46 | +Cpp11BracedListStyle: false |
| 47 | +DerivePointerAlignment: false |
| 48 | +DisableFormat: false |
| 49 | +ExperimentalAutoDetectBinPacking: false |
| 50 | +IndentCaseLabels: true |
| 51 | +IndentWidth: 3 |
| 52 | +IndentWrappedFunctionNames: false |
| 53 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 54 | +MaxEmptyLinesToKeep: 1 |
| 55 | +NamespaceIndentation: All |
| 56 | +PointerAlignment: Left |
| 57 | +ReflowComments: false |
| 58 | +SortIncludes: true |
| 59 | +SpaceAfterCStyleCast: false |
| 60 | +SpaceAfterTemplateKeyword: false |
| 61 | +SpaceBeforeAssignmentOperators: true |
| 62 | +SpaceBeforeParens: Never |
| 63 | +SpaceInEmptyParentheses: false |
| 64 | +SpacesBeforeTrailingComments: 2 |
| 65 | +SpacesInAngles: true |
| 66 | +SpacesInCStyleCastParentheses: false |
| 67 | +SpacesInContainerLiterals: true |
| 68 | +SpacesInParentheses: true |
| 69 | +SpacesInSquareBrackets: true |
| 70 | +TabWidth: 8 |
| 71 | +UseTab: Never |
0 commit comments