|
| 1 | +# C++ formatting |
| 2 | + |
| 3 | +Language: Cpp |
| 4 | +BasedOnStyle: Chromium |
| 5 | +IndentWidth: 4 |
| 6 | +ColumnLimit: 140 |
| 7 | +AccessModifierOffset: -4 |
| 8 | +SortIncludes: false |
| 9 | +SortUsingDeclarations: false |
| 10 | +SpaceAfterTemplateKeyword: false |
| 11 | +DerivePointerAlignment: false |
| 12 | +PointerAlignment: Left |
| 13 | +FixNamespaceComments: true |
| 14 | + |
| 15 | +AllowAllConstructorInitializersOnNextLine: true |
| 16 | +BreakConstructorInitializers: BeforeComma |
| 17 | +AlwaysBreakTemplateDeclarations: true |
| 18 | +AllowShortFunctionsOnASingleLine: Inline |
| 19 | +AllowShortEnumsOnASingleLine: true |
| 20 | +BreakBeforeBraces: Custom |
| 21 | +BraceWrapping: |
| 22 | + AfterCaseLabel: true |
| 23 | + AfterClass: true |
| 24 | + AfterControlStatement: Always |
| 25 | + AfterEnum: true |
| 26 | + AfterFunction: true |
| 27 | + AfterNamespace: true |
| 28 | + AfterStruct: true |
| 29 | + AfterUnion: true |
| 30 | + AfterExternBlock: true |
| 31 | + BeforeCatch: true |
| 32 | + BeforeElse: true |
| 33 | + BeforeLambdaBody: true |
| 34 | + BeforeWhile: false |
| 35 | + SplitEmptyFunction: false |
| 36 | + SplitEmptyRecord: false |
| 37 | + SplitEmptyNamespace: false |
| 38 | +IndentCaseLabels: false |
| 39 | + |
| 40 | +ReflowComments: true |
| 41 | +CommentPragmas: '^\\.+' |
| 42 | +SpacesBeforeTrailingComments: 1 |
| 43 | +PenaltyBreakComment: 0 |
| 44 | +AlignAfterOpenBracket: BlockIndent |
| 45 | +IndentPPDirectives: None |
| 46 | +PenaltyReturnTypeOnItsOwnLine: 100000 |
| 47 | +PenaltyBreakTemplateDeclaration: 100000 |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +# Slang formatting |
| 52 | + |
| 53 | +Language: CSharp |
| 54 | +BasedOnStyle: Chromium |
| 55 | +IndentWidth: 4 |
| 56 | +ColumnLimit: 140 |
| 57 | +AccessModifierOffset: -4 |
| 58 | +SortIncludes: false |
| 59 | +SortUsingDeclarations: false |
| 60 | +SpaceAfterTemplateKeyword: false |
| 61 | +DerivePointerAlignment: false |
| 62 | +PointerAlignment: Left |
| 63 | +FixNamespaceComments: true |
| 64 | + |
| 65 | +AllowAllConstructorInitializersOnNextLine: true |
| 66 | +BreakConstructorInitializers: BeforeComma |
| 67 | +AlwaysBreakTemplateDeclarations: true |
| 68 | +AllowShortFunctionsOnASingleLine: Inline |
| 69 | +AllowShortEnumsOnASingleLine: true |
| 70 | +BreakBeforeBraces: Custom |
| 71 | +BraceWrapping: |
| 72 | + AfterCaseLabel: true |
| 73 | + AfterClass: true |
| 74 | + AfterControlStatement: Always |
| 75 | + AfterEnum: true |
| 76 | + AfterFunction: true |
| 77 | + AfterNamespace: true |
| 78 | + AfterStruct: true |
| 79 | + AfterUnion: true |
| 80 | + AfterExternBlock: true |
| 81 | + BeforeCatch: true |
| 82 | + BeforeElse: true |
| 83 | + BeforeLambdaBody: true |
| 84 | + BeforeWhile: false |
| 85 | + SplitEmptyFunction: false |
| 86 | + SplitEmptyRecord: false |
| 87 | + SplitEmptyNamespace: false |
| 88 | +IndentCaseLabels: false |
| 89 | + |
| 90 | +ReflowComments: true |
| 91 | +CommentPragmas: '^\\.+' |
| 92 | +SpacesBeforeTrailingComments: 1 |
| 93 | +PenaltyBreakComment: 0 |
| 94 | +AlignAfterOpenBracket: BlockIndent |
| 95 | +IndentPPDirectives: None |
| 96 | +PenaltyReturnTypeOnItsOwnLine: 100000 |
| 97 | +PenaltyBreakTemplateDeclaration: 100000 |
0 commit comments