xref: /openbmc/bmcweb/.clang-format (revision bd79bce8)
19992332bSEd Tanous---
21abe55efSEd TanousLanguage:        Cpp
31abe55efSEd Tanous# BasedOnStyle:  LLVM
41abe55efSEd TanousAccessModifierOffset: -2
59992332bSEd TanousAlignAfterOpenBracket: Align
69992332bSEd TanousAlignConsecutiveAssignments: false
79992332bSEd TanousAlignConsecutiveDeclarations: false
81214b7e7SGunnar MillsAlignEscapedNewlines: Right
989492a15SPatrick WilliamsAlignOperands:  Align
1089492a15SPatrick WilliamsAlignTrailingComments:
1189492a15SPatrick Williams  Kind: Always
1289492a15SPatrick Williams  OverEmptyLines: 1
139992332bSEd TanousAllowAllParametersOfDeclarationOnNextLine: true
1489492a15SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
159992332bSEd TanousAllowShortCaseLabelsOnASingleLine: false
1689492a15SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
175a39f77aSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
185a39f77aSPatrick WilliamsAllowShortLambdasOnASingleLine: true
191abe55efSEd TanousAllowShortLoopsOnASingleLine: false
209992332bSEd TanousAlwaysBreakAfterReturnType: None
211abe55efSEd TanousAlwaysBreakBeforeMultilineStrings: false
221214b7e7SGunnar MillsAlwaysBreakTemplateDeclarations: Yes
239992332bSEd TanousBinPackArguments: true
249992332bSEd TanousBinPackParameters: true
255a39f77aSPatrick WilliamsBitFieldColonSpacing: None
269992332bSEd TanousBraceWrapping:
2754f7ddadSGunnar Mills  AfterCaseLabel:  true
281abe55efSEd Tanous  AfterClass:      true
291abe55efSEd Tanous  AfterControlStatement: true
301abe55efSEd Tanous  AfterEnum:       true
315a39f77aSPatrick Williams  AfterExternBlock: true
321abe55efSEd Tanous  AfterFunction:   true
331abe55efSEd Tanous  AfterNamespace:  true
341abe55efSEd Tanous  AfterObjCDeclaration: true
351abe55efSEd Tanous  AfterStruct:     true
361abe55efSEd Tanous  AfterUnion:      true
371abe55efSEd Tanous  BeforeCatch:     true
381abe55efSEd Tanous  BeforeElse:      true
395a39f77aSPatrick Williams  BeforeLambdaBody: false
405a39f77aSPatrick Williams  BeforeWhile:     false
419992332bSEd Tanous  IndentBraces:    false
421214b7e7SGunnar Mills  SplitEmptyFunction:   false
431214b7e7SGunnar Mills  SplitEmptyRecord:     false
441214b7e7SGunnar Mills  SplitEmptyNamespace:  false
4589492a15SPatrick WilliamsBreakAfterAttributes: Never
469992332bSEd TanousBreakBeforeBinaryOperators: None
471abe55efSEd TanousBreakBeforeBraces: Custom
489992332bSEd TanousBreakBeforeTernaryOperators: true
491abe55efSEd TanousBreakConstructorInitializers: AfterColon
501214b7e7SGunnar MillsBreakInheritanceList: AfterColon
510fda0f12SGeorge LiuBreakStringLiterals: false
521ccd57c4SEd TanousColumnLimit:     80
539992332bSEd TanousCommentPragmas:  '^ IWYU pragma:'
541214b7e7SGunnar MillsCompactNamespaces: false
559992332bSEd TanousConstructorInitializerIndentWidth: 4
569992332bSEd TanousContinuationIndentWidth: 4
579992332bSEd TanousCpp11BracedListStyle: true
581214b7e7SGunnar MillsDerivePointerAlignment: false
599992332bSEd TanousDisableFormat:   false
601abe55efSEd TanousFixNamespaceComments: true
615a39f77aSPatrick WilliamsForEachMacros:
625a39f77aSPatrick Williams  - foreach
635a39f77aSPatrick Williams  - Q_FOREACH
645a39f77aSPatrick Williams  - BOOST_FOREACH
651abe55efSEd TanousIncludeBlocks: Regroup
669992332bSEd TanousIncludeCategories:
679140a674SEd Tanous  - Regex:           '^[<"](gtest|gmock)'
681214b7e7SGunnar Mills    Priority:        7
691abe55efSEd Tanous  - Regex:           '^"config.h"'
701abe55efSEd Tanous    Priority:        -1
711214b7e7SGunnar Mills  - Regex:           '^".*\.h"'
729992332bSEd Tanous    Priority:        1
731214b7e7SGunnar Mills  - Regex:           '^".*\.hpp"'
749992332bSEd Tanous    Priority:        2
751214b7e7SGunnar Mills  - Regex:           '^<.*\.h>'
769992332bSEd Tanous    Priority:        3
771214b7e7SGunnar Mills  - Regex:           '^<.*\.hpp>'
789140a674SEd Tanous    Priority:        4
791214b7e7SGunnar Mills  - Regex:           '^<.*'
801214b7e7SGunnar Mills    Priority:        5
811214b7e7SGunnar Mills  - Regex:           '.*'
821214b7e7SGunnar Mills    Priority:        6
839992332bSEd TanousIndentCaseLabels: true
845a39f77aSPatrick WilliamsIndentExternBlock: NoIndent
8589492a15SPatrick WilliamsIndentRequiresClause: true
861abe55efSEd TanousIndentWidth:     4
871abe55efSEd TanousIndentWrappedFunctionNames: true
8889492a15SPatrick WilliamsInsertNewlineAtEOF: true
8989492a15SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*bd79bce8SPatrick WilliamsLambdaBodyIndentation: Signature
9189492a15SPatrick WilliamsLineEnding: LF
929992332bSEd TanousMacroBlockBegin: ''
939992332bSEd TanousMacroBlockEnd:   ''
949992332bSEd TanousMaxEmptyLinesToKeep: 1
959992332bSEd TanousNamespaceIndentation: None
969992332bSEd TanousObjCBlockIndentWidth: 2
979992332bSEd TanousObjCSpaceAfterProperty: false
981abe55efSEd TanousObjCSpaceBeforeProtocolList: true
995a39f77aSPatrick WilliamsPackConstructorInitializers: BinPack
10089492a15SPatrick WilliamsPenaltyBreakAssignment: 25
101*bd79bce8SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1029992332bSEd TanousPenaltyBreakComment: 300
1039992332bSEd TanousPenaltyBreakFirstLessLess: 120
1049992332bSEd TanousPenaltyBreakString: 1000
105*bd79bce8SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1069992332bSEd TanousPenaltyExcessCharacter: 1000000
1071abe55efSEd TanousPenaltyReturnTypeOnItsOwnLine: 60
108*bd79bce8SPatrick WilliamsPenaltyIndentedWhitespace: 1
1095a39f77aSPatrick WilliamsPointerAlignment: Left
11089492a15SPatrick WilliamsQualifierAlignment: Left
11189492a15SPatrick WilliamsReferenceAlignment: Left
1129992332bSEd TanousReflowComments:  true
11389492a15SPatrick WilliamsRequiresClausePosition: OwnLine
11489492a15SPatrick WilliamsRequiresExpressionIndentation: Keyword
1155a39f77aSPatrick WilliamsSortIncludes: CaseSensitive
1161214b7e7SGunnar MillsSortUsingDeclarations: true
1179992332bSEd TanousSpaceAfterCStyleCast: false
1181214b7e7SGunnar MillsSpaceAfterTemplateKeyword: true
1199992332bSEd TanousSpaceBeforeAssignmentOperators: true
1201214b7e7SGunnar MillsSpaceBeforeCpp11BracedList: false
1211214b7e7SGunnar MillsSpaceBeforeCtorInitializerColon: true
1221214b7e7SGunnar MillsSpaceBeforeInheritanceColon: true
1239992332bSEd TanousSpaceBeforeParens: ControlStatements
1241214b7e7SGunnar MillsSpaceBeforeRangeBasedForLoopColon: true
1259992332bSEd TanousSpaceInEmptyParentheses: false
1261abe55efSEd TanousSpacesBeforeTrailingComments: 1
1275a39f77aSPatrick WilliamsSpacesInAngles: Never
1289992332bSEd TanousSpacesInContainerLiterals: true
1299992332bSEd TanousSpacesInCStyleCastParentheses: false
1309992332bSEd TanousSpacesInParentheses: false
1319992332bSEd TanousSpacesInSquareBrackets: false
1321214b7e7SGunnar MillsStandard:        Latest
1331abe55efSEd TanousTabWidth:        4
1349992332bSEd TanousUseTab:          Never
1359992332bSEd Tanous...
1361214b7e7SGunnar Mills
137