|
| 1 | +--- |
| 2 | +BasedOnStyle: Google |
| 3 | +ColumnLimit: 120 |
| 4 | +MaxEmptyLinesToKeep: 1 |
| 5 | + |
| 6 | +# Allow us to adhere to https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes |
| 7 | +IncludeBlocks: Preserve |
| 8 | +SortIncludes: true |
| 9 | + |
| 10 | +Standard: Auto |
| 11 | +IndentWidth: 2 |
| 12 | +TabWidth: 2 |
| 13 | +UseTab: Never |
| 14 | +AccessModifierOffset: -2 |
| 15 | +ConstructorInitializerIndentWidth: 2 |
| 16 | +NamespaceIndentation: None |
| 17 | +ContinuationIndentWidth: 4 |
| 18 | +IndentCaseLabels: true |
| 19 | +IndentFunctionDeclarationAfterType: false |
| 20 | + |
| 21 | +AlignEscapedNewlinesLeft: false |
| 22 | +AlignTrailingComments: true |
| 23 | + |
| 24 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 25 | +ExperimentalAutoDetectBinPacking: false |
| 26 | +ObjCSpaceBeforeProtocolList: true |
| 27 | +Cpp11BracedListStyle: false |
| 28 | + |
| 29 | +AllowShortBlocksOnASingleLine: true |
| 30 | +AllowShortIfStatementsOnASingleLine: false |
| 31 | +AllowShortLoopsOnASingleLine: false |
| 32 | +AllowShortFunctionsOnASingleLine: None |
| 33 | +AllowShortCaseLabelsOnASingleLine: false |
| 34 | + |
| 35 | +AlwaysBreakTemplateDeclarations: true |
| 36 | +AlwaysBreakBeforeMultilineStrings: false |
| 37 | +BreakBeforeBinaryOperators: false |
| 38 | +BreakBeforeTernaryOperators: false |
| 39 | +BreakConstructorInitializersBeforeComma: true |
| 40 | + |
| 41 | +BinPackParameters: true |
| 42 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 43 | +DerivePointerBinding: false |
| 44 | +PointerBindsToType: true |
| 45 | + |
| 46 | +PenaltyExcessCharacter: 50 |
| 47 | +PenaltyBreakBeforeFirstCallParameter: 30 |
| 48 | +PenaltyBreakComment: 1000 |
| 49 | +PenaltyBreakFirstLessLess: 10 |
| 50 | +PenaltyBreakString: 100 |
| 51 | +PenaltyReturnTypeOnItsOwnLine: 50 |
| 52 | + |
| 53 | +SpacesBeforeTrailingComments: 2 |
| 54 | +SpacesInParentheses: false |
| 55 | +SpacesInAngles: false |
| 56 | +SpaceInEmptyParentheses: false |
| 57 | +SpacesInCStyleCastParentheses: false |
| 58 | +SpaceAfterCStyleCast: false |
| 59 | +SpaceAfterControlStatementKeyword: true |
| 60 | +SpaceBeforeAssignmentOperators: true |
| 61 | + |
| 62 | +# Configure each individual brace in BraceWrapping |
| 63 | +BreakBeforeBraces: Custom |
| 64 | + |
| 65 | +# Control of individual brace wrapping cases |
| 66 | +BraceWrapping: |
| 67 | + AfterCaseLabel: true |
| 68 | + AfterClass: true |
| 69 | + AfterControlStatement: true |
| 70 | + AfterEnum: true |
| 71 | + AfterFunction: true |
| 72 | + AfterNamespace: true |
| 73 | + AfterStruct: true |
| 74 | + AfterUnion: true |
| 75 | + BeforeCatch: true |
| 76 | + BeforeElse: true |
| 77 | + IndentBraces: false |
| 78 | +IncludeBlocks: Preserve |
| 79 | +... |
0 commit comments