|
| 1 | +# This is the configuration file for clang-format, an automatic code formatter. |
| 2 | +# Introduction: https://clang.llvm.org/docs/ClangFormat.html |
| 3 | +# Supported options: https://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 4 | + |
| 5 | +Language: Cpp |
| 6 | +Standard: Latest |
| 7 | + |
| 8 | +ColumnLimit: 110 |
| 9 | + |
| 10 | +UseTab: Never |
| 11 | +IndentWidth: 4 |
| 12 | +PPIndentWidth: 2 |
| 13 | +ContinuationIndentWidth: 4 |
| 14 | + |
| 15 | +LineEnding: LF |
| 16 | +InsertNewlineAtEOF: true |
| 17 | +KeepEmptyLinesAtTheStartOfBlocks: false |
| 18 | +MaxEmptyLinesToKeep: 1 |
| 19 | + |
| 20 | +IndentCaseBlocks: false |
| 21 | +IndentCaseLabels: false |
| 22 | +IndentGotoLabels: false |
| 23 | +IndentPPDirectives: AfterHash |
| 24 | +IndentWrappedFunctionNames: false |
| 25 | + |
| 26 | +AlignAfterOpenBracket: Align |
| 27 | +AlignArrayOfStructures: Right |
| 28 | +AlignEscapedNewlines: Left |
| 29 | +AlignOperands: Align |
| 30 | +AlignConsecutiveAssignments: |
| 31 | + Enabled: true |
| 32 | + AcrossEmptyLines: false |
| 33 | + AcrossComments: false |
| 34 | + AlignCompound: false |
| 35 | + PadOperators: false |
| 36 | +AlignConsecutiveBitFields: |
| 37 | + Enabled: true |
| 38 | + AcrossEmptyLines: false |
| 39 | + AcrossComments: false |
| 40 | +AlignConsecutiveDeclarations: |
| 41 | + Enabled: true |
| 42 | + AcrossEmptyLines: false |
| 43 | + AcrossComments: false |
| 44 | +AlignConsecutiveMacros: |
| 45 | + Enabled: true |
| 46 | + AcrossEmptyLines: false |
| 47 | + AcrossComments: false |
| 48 | +AlignTrailingComments: |
| 49 | + Kind: Leave |
| 50 | + OverEmptyLines: 0 |
| 51 | + |
| 52 | +BinPackArguments: true |
| 53 | +BinPackParameters: false |
| 54 | +AllowAllArgumentsOnNextLine: true |
| 55 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 56 | + |
| 57 | +AllowShortBlocksOnASingleLine: Never |
| 58 | +AllowShortCaseLabelsOnASingleLine: false |
| 59 | +AllowShortEnumsOnASingleLine: true |
| 60 | +AllowShortFunctionsOnASingleLine: None |
| 61 | +AllowShortIfStatementsOnASingleLine: AllIfsAndElse |
| 62 | +AllowShortLoopsOnASingleLine: false |
| 63 | + |
| 64 | +AlwaysBreakAfterReturnType: None |
| 65 | +AlwaysBreakBeforeMultilineStrings: false |
| 66 | +BraceWrapping: |
| 67 | + AfterCaseLabel: false |
| 68 | + AfterControlStatement: Never |
| 69 | + AfterEnum: false |
| 70 | + AfterExternBlock: false |
| 71 | + AfterFunction: true |
| 72 | + AfterStruct: false |
| 73 | + AfterUnion: false |
| 74 | + BeforeElse: false |
| 75 | + BeforeWhile: false |
| 76 | + IndentBraces: false |
| 77 | + SplitEmptyFunction: false |
| 78 | + SplitEmptyRecord: false |
| 79 | +BreakAfterAttributes: Never |
| 80 | +BreakBeforeBinaryOperators: None |
| 81 | +BreakBeforeBraces: Custom |
| 82 | +BreakBeforeInlineASMColon: OnlyMultiline |
| 83 | +BreakBeforeTernaryOperators: true |
| 84 | + |
| 85 | +DerivePointerAlignment: false |
| 86 | +PointerAlignment: Left |
| 87 | + |
| 88 | +QualifierAlignment: Custom |
| 89 | +QualifierOrder: ["inline", "static", "volatile", "restrict", "const", "type"] |
| 90 | + |
| 91 | +ReflowComments: false |
| 92 | +BreakStringLiterals: false |
| 93 | +RemoveSemicolon: true |
| 94 | +RemoveParentheses: ReturnStatement |
| 95 | +InsertBraces: false |
| 96 | +SeparateDefinitionBlocks: Always |
| 97 | + |
| 98 | +SpaceAfterCStyleCast: false |
| 99 | +SpaceAfterLogicalNot: false |
| 100 | +SpaceAroundPointerQualifiers: Default |
| 101 | +SpaceBeforeAssignmentOperators: true |
| 102 | +SpaceBeforeCaseColon: false |
| 103 | +SpaceBeforeParens: ControlStatements |
| 104 | +BitFieldColonSpacing: Both |
| 105 | +SpaceBeforeSquareBrackets: false |
| 106 | +SpaceInEmptyBlock: false |
| 107 | +SpacesBeforeTrailingComments: 1 |
| 108 | +SpacesInSquareBrackets: false |
| 109 | +SpacesInLineCommentPrefix: |
| 110 | + Minimum: 1 |
| 111 | + Maximum: -1 |
| 112 | + |
| 113 | +SortIncludes: Never |
| 114 | +IncludeBlocks: Preserve |
| 115 | +IncludeIsMainRegex: "" |
| 116 | +IncludeCategories: |
| 117 | + - {Regex: "<.*>", Priority: -2, CaseSensitive: true} |
| 118 | + - {Regex: "\".*\"", Priority: -1, CaseSensitive: true} |
| 119 | + |
| 120 | +AttributeMacros: ["__capability"] |
| 121 | +StatementAttributeLikeMacros: [] |
| 122 | +StatementMacros: [] |
| 123 | + |
| 124 | +PenaltyBreakAssignment: 200 |
| 125 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 126 | +PenaltyBreakComment: 300 |
| 127 | +PenaltyBreakFirstLessLess: 120 |
| 128 | +PenaltyBreakOpenParenthesis: 0 |
| 129 | +PenaltyBreakString: 1000 |
| 130 | +PenaltyExcessCharacter: 10 |
| 131 | +PenaltyIndentedWhitespace: 0 |
| 132 | +PenaltyReturnTypeOnItsOwnLine: 60 |
0 commit comments