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