|
| 1 | +--- |
| 2 | + |
| 3 | +# See https://releases.llvm.org/14.0.0/tools/clang/docs/ClangFormatStyleOptions.html for documentation of these options |
| 4 | +BasedOnStyle: Google |
| 5 | +IndentWidth: 2 |
| 6 | +ColumnLimit: 120 |
| 7 | + |
| 8 | +AccessModifierOffset: -2 |
| 9 | +AlignAfterOpenBracket: AlwaysBreak |
| 10 | +AlignConsecutiveAssignments: None |
| 11 | +AlignConsecutiveDeclarations: None |
| 12 | +AlignEscapedNewlines: Left |
| 13 | +AlignTrailingComments: false |
| 14 | +AllowAllArgumentsOnNextLine: true |
| 15 | +AllowAllParametersOfDeclarationOnNextLine: true |
| 16 | +AllowShortBlocksOnASingleLine: Empty |
| 17 | +AllowShortFunctionsOnASingleLine: false |
| 18 | +BinPackArguments: false |
| 19 | +BinPackParameters: false |
| 20 | +BraceWrapping: |
| 21 | + AfterClass: true |
| 22 | + AfterControlStatement: MultiLine |
| 23 | + AfterEnum: true |
| 24 | + AfterFunction: true |
| 25 | + AfterNamespace: true |
| 26 | + AfterStruct: true |
| 27 | + AfterUnion: true |
| 28 | + AfterExternBlock: true |
| 29 | + BeforeCatch: false |
| 30 | + BeforeElse: false |
| 31 | + BeforeLambdaBody: false |
| 32 | + BeforeWhile: false |
| 33 | + IndentBraces: false |
| 34 | + SplitEmptyFunction: false |
| 35 | + SplitEmptyRecord: false |
| 36 | + SplitEmptyNamespace: false |
| 37 | +BreakBeforeBraces: Custom |
| 38 | +BreakConstructorInitializers: BeforeComma |
| 39 | +CompactNamespaces: false |
| 40 | +ContinuationIndentWidth: 2 |
| 41 | +ConstructorInitializerIndentWidth: 0 |
| 42 | +DerivePointerAlignment: false |
| 43 | +EmptyLineAfterAccessModifier: Never |
| 44 | +EmptyLineBeforeAccessModifier: LogicalBlock |
| 45 | +FixNamespaceComments: true |
| 46 | +IncludeBlocks: Regroup |
| 47 | +IncludeCategories: |
| 48 | + # Headers in <> with .h extension (best guess at C system headers) |
| 49 | + - Regex: '<([A-Za-z0-9\Q/-_\E])+\.h>' |
| 50 | + Priority: 1 |
| 51 | + # Headers in <> without extension (C++ system headers) |
| 52 | + - Regex: '<([A-Za-z0-9\Q/-_\E])+>' |
| 53 | + Priority: 2 |
| 54 | + # Headers in <> with other extensions. |
| 55 | + - Regex: '<([A-Za-z0-9.\Q/-_\E])+>' |
| 56 | + Priority: 3 |
| 57 | + # Headers in "" |
| 58 | + - Regex: '"([A-Za-z0-9.\Q/-_\E])+"' |
| 59 | + Priority: 4 |
| 60 | +IndentAccessModifiers: false |
| 61 | +IndentPPDirectives: BeforeHash |
| 62 | +PackConstructorInitializers: Never |
| 63 | +PointerAlignment: Middle |
| 64 | +ReferenceAlignment: Middle |
| 65 | +ReflowComments: false |
| 66 | +SeparateDefinitionBlocks: Always |
| 67 | +SortIncludes: CaseInsensitive |
| 68 | +SpacesBeforeTrailingComments: 2 |
0 commit comments