xref: /openbmc/bmcweb/.clang-format (revision 89492a15)
19992332bSEd Tanous---
21abe55efSEd TanousLanguage:        Cpp
31abe55efSEd Tanous# BasedOnStyle:  LLVM
41abe55efSEd TanousAccessModifierOffset: -2
59992332bSEd TanousAlignAfterOpenBracket: Align
69992332bSEd TanousAlignConsecutiveAssignments: false
79992332bSEd TanousAlignConsecutiveDeclarations: false
81214b7e7SGunnar MillsAlignEscapedNewlines: Right
9*89492a15SPatrick WilliamsAlignOperands:  Align
10*89492a15SPatrick WilliamsAlignTrailingComments:
11*89492a15SPatrick Williams  Kind: Always
12*89492a15SPatrick Williams  OverEmptyLines: 1
139992332bSEd TanousAllowAllParametersOfDeclarationOnNextLine: true
14*89492a15SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
159992332bSEd TanousAllowShortCaseLabelsOnASingleLine: false
16*89492a15SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
171abe55efSEd TanousAllowShortIfStatementsOnASingleLine: false
181abe55efSEd TanousAllowShortLoopsOnASingleLine: false
199992332bSEd TanousAlwaysBreakAfterReturnType: None
201abe55efSEd TanousAlwaysBreakBeforeMultilineStrings: false
211214b7e7SGunnar MillsAlwaysBreakTemplateDeclarations: Yes
229992332bSEd TanousBinPackArguments: true
239992332bSEd TanousBinPackParameters: true
249992332bSEd TanousBraceWrapping:
2554f7ddadSGunnar Mills  AfterCaseLabel:  true
261abe55efSEd Tanous  AfterClass:      true
271abe55efSEd Tanous  AfterControlStatement: true
281abe55efSEd Tanous  AfterEnum:       true
291abe55efSEd Tanous  AfterFunction:   true
301abe55efSEd Tanous  AfterNamespace:  true
311abe55efSEd Tanous  AfterObjCDeclaration: true
321abe55efSEd Tanous  AfterStruct:     true
331abe55efSEd Tanous  AfterUnion:      true
341214b7e7SGunnar Mills  AfterExternBlock: true
351abe55efSEd Tanous  BeforeCatch:     true
361abe55efSEd Tanous  BeforeElse:      true
379992332bSEd Tanous  IndentBraces:    false
381214b7e7SGunnar Mills  SplitEmptyFunction:   false
391214b7e7SGunnar Mills  SplitEmptyRecord:     false
401214b7e7SGunnar Mills  SplitEmptyNamespace:  false
41*89492a15SPatrick WilliamsBreakAfterAttributes: Never
429992332bSEd TanousBreakBeforeBinaryOperators: None
431abe55efSEd TanousBreakBeforeBraces: Custom
449992332bSEd TanousBreakBeforeTernaryOperators: true
451abe55efSEd TanousBreakConstructorInitializers: AfterColon
461214b7e7SGunnar MillsBreakInheritanceList: AfterColon
470fda0f12SGeorge LiuBreakStringLiterals: false
481ccd57c4SEd TanousColumnLimit:     80
499992332bSEd TanousCommentPragmas:  '^ IWYU pragma:'
501214b7e7SGunnar MillsCompactNamespaces: false
511abe55efSEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
529992332bSEd TanousConstructorInitializerIndentWidth: 4
539992332bSEd TanousContinuationIndentWidth: 4
549992332bSEd TanousCpp11BracedListStyle: true
55*89492a15SPatrick WilliamsDeriveLineEnding: false
561214b7e7SGunnar MillsDerivePointerAlignment: false
571abe55efSEd TanousPointerAlignment: Left
589992332bSEd TanousDisableFormat:   false
599992332bSEd TanousExperimentalAutoDetectBinPacking: false
601abe55efSEd TanousFixNamespaceComments: true
619992332bSEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
621abe55efSEd TanousIncludeBlocks: Regroup
639992332bSEd TanousIncludeCategories:
649140a674SEd Tanous  - Regex:           '^[<"](gtest|gmock)'
651214b7e7SGunnar Mills    Priority:        7
661abe55efSEd Tanous  - Regex:           '^"config.h"'
671abe55efSEd Tanous    Priority:        -1
681214b7e7SGunnar Mills  - Regex:           '^".*\.h"'
699992332bSEd Tanous    Priority:        1
701214b7e7SGunnar Mills  - Regex:           '^".*\.hpp"'
719992332bSEd Tanous    Priority:        2
721214b7e7SGunnar Mills  - Regex:           '^<.*\.h>'
739992332bSEd Tanous    Priority:        3
741214b7e7SGunnar Mills  - Regex:           '^<.*\.hpp>'
759140a674SEd Tanous    Priority:        4
761214b7e7SGunnar Mills  - Regex:           '^<.*'
771214b7e7SGunnar Mills    Priority:        5
781214b7e7SGunnar Mills  - Regex:           '.*'
791214b7e7SGunnar Mills    Priority:        6
809992332bSEd TanousIndentCaseLabels: true
81*89492a15SPatrick WilliamsIndentRequiresClause: true
821abe55efSEd TanousIndentWidth:     4
831abe55efSEd TanousIndentWrappedFunctionNames: true
84*89492a15SPatrick WilliamsInsertNewlineAtEOF: true
85*89492a15SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*89492a15SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*89492a15SPatrick WilliamsLineEnding: LF
889992332bSEd TanousMacroBlockBegin: ''
899992332bSEd TanousMacroBlockEnd:   ''
909992332bSEd TanousMaxEmptyLinesToKeep: 1
919992332bSEd TanousNamespaceIndentation: None
929992332bSEd TanousObjCBlockIndentWidth: 2
939992332bSEd TanousObjCSpaceAfterProperty: false
941abe55efSEd TanousObjCSpaceBeforeProtocolList: true
95*89492a15SPatrick WilliamsPenaltyBreakAssignment: 25
961abe55efSEd TanousPenaltyBreakBeforeFirstCallParameter: 19
979992332bSEd TanousPenaltyBreakComment: 300
989992332bSEd TanousPenaltyBreakFirstLessLess: 120
999992332bSEd TanousPenaltyBreakString: 1000
1009992332bSEd TanousPenaltyExcessCharacter: 1000000
1011abe55efSEd TanousPenaltyReturnTypeOnItsOwnLine: 60
102*89492a15SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*89492a15SPatrick WilliamsQualifierAlignment: Left
104*89492a15SPatrick WilliamsReferenceAlignment: Left
1059992332bSEd TanousReflowComments:  true
106*89492a15SPatrick WilliamsRequiresClausePosition: OwnLine
107*89492a15SPatrick WilliamsRequiresExpressionIndentation: Keyword
1081ff48780SEd TanousSortIncludes:    true
1091214b7e7SGunnar MillsSortUsingDeclarations: true
1109992332bSEd TanousSpaceAfterCStyleCast: false
1111214b7e7SGunnar MillsSpaceAfterTemplateKeyword: true
1129992332bSEd TanousSpaceBeforeAssignmentOperators: true
1131214b7e7SGunnar MillsSpaceBeforeCpp11BracedList: false
1141214b7e7SGunnar MillsSpaceBeforeCtorInitializerColon: true
1151214b7e7SGunnar MillsSpaceBeforeInheritanceColon: true
1169992332bSEd TanousSpaceBeforeParens: ControlStatements
1171214b7e7SGunnar MillsSpaceBeforeRangeBasedForLoopColon: true
1189992332bSEd TanousSpaceInEmptyParentheses: false
1191abe55efSEd TanousSpacesBeforeTrailingComments: 1
1209992332bSEd TanousSpacesInAngles:  false
1219992332bSEd TanousSpacesInContainerLiterals: true
1229992332bSEd TanousSpacesInCStyleCastParentheses: false
1239992332bSEd TanousSpacesInParentheses: false
1249992332bSEd TanousSpacesInSquareBrackets: false
1251214b7e7SGunnar MillsStandard:        Latest
1261abe55efSEd TanousTabWidth:        4
1279992332bSEd TanousUseTab:          Never
1289992332bSEd Tanous...
1291214b7e7SGunnar Mills
130