xref: /openbmc/bmcweb/.clang-format (revision 1214b7e7)
19992332bSEd Tanous---
21abe55efSEd TanousLanguage:        Cpp
31abe55efSEd Tanous# BasedOnStyle:  LLVM
41abe55efSEd TanousAccessModifierOffset: -2
59992332bSEd TanousAlignAfterOpenBracket: Align
69992332bSEd TanousAlignConsecutiveAssignments: false
79992332bSEd TanousAlignConsecutiveDeclarations: false
8*1214b7e7SGunnar MillsAlignEscapedNewlines: Right
99992332bSEd TanousAlignOperands:   true
109992332bSEd TanousAlignTrailingComments: true
119992332bSEd TanousAllowAllParametersOfDeclarationOnNextLine: true
129992332bSEd TanousAllowShortBlocksOnASingleLine: false
139992332bSEd TanousAllowShortCaseLabelsOnASingleLine: false
141abe55efSEd TanousAllowShortFunctionsOnASingleLine: None
151abe55efSEd TanousAllowShortIfStatementsOnASingleLine: false
161abe55efSEd TanousAllowShortLoopsOnASingleLine: false
179992332bSEd TanousAlwaysBreakAfterReturnType: None
181abe55efSEd TanousAlwaysBreakBeforeMultilineStrings: false
19*1214b7e7SGunnar MillsAlwaysBreakTemplateDeclarations: Yes
209992332bSEd TanousBinPackArguments: true
219992332bSEd TanousBinPackParameters: true
229992332bSEd TanousBraceWrapping:
2354f7ddadSGunnar Mills  AfterCaseLabel:  true
241abe55efSEd Tanous  AfterClass:      true
251abe55efSEd Tanous  AfterControlStatement: true
261abe55efSEd Tanous  AfterEnum:       true
271abe55efSEd Tanous  AfterFunction:   true
281abe55efSEd Tanous  AfterNamespace:  true
291abe55efSEd Tanous  AfterObjCDeclaration: true
301abe55efSEd Tanous  AfterStruct:     true
311abe55efSEd Tanous  AfterUnion:      true
32*1214b7e7SGunnar Mills  AfterExternBlock: true
331abe55efSEd Tanous  BeforeCatch:     true
341abe55efSEd Tanous  BeforeElse:      true
359992332bSEd Tanous  IndentBraces:    false
36*1214b7e7SGunnar Mills  SplitEmptyFunction:   false
37*1214b7e7SGunnar Mills  SplitEmptyRecord:     false
38*1214b7e7SGunnar Mills  SplitEmptyNamespace:  false
399992332bSEd TanousBreakBeforeBinaryOperators: None
401abe55efSEd TanousBreakBeforeBraces: Custom
419992332bSEd TanousBreakBeforeTernaryOperators: true
421abe55efSEd TanousBreakConstructorInitializers: AfterColon
43*1214b7e7SGunnar MillsBreakInheritanceList: AfterColon
44*1214b7e7SGunnar MillsBreakStringLiterals: true
451ccd57c4SEd TanousColumnLimit:     80
469992332bSEd TanousCommentPragmas:  '^ IWYU pragma:'
47*1214b7e7SGunnar MillsCompactNamespaces: false
481abe55efSEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
499992332bSEd TanousConstructorInitializerIndentWidth: 4
509992332bSEd TanousContinuationIndentWidth: 4
519992332bSEd TanousCpp11BracedListStyle: true
52*1214b7e7SGunnar MillsDerivePointerAlignment: false
531abe55efSEd TanousPointerAlignment: Left
549992332bSEd TanousDisableFormat:   false
559992332bSEd TanousExperimentalAutoDetectBinPacking: false
561abe55efSEd TanousFixNamespaceComments: true
579992332bSEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
581abe55efSEd TanousIncludeBlocks: Regroup
599992332bSEd TanousIncludeCategories:
609140a674SEd Tanous  - Regex:           '^[<"](gtest|gmock)'
61*1214b7e7SGunnar Mills    Priority:        7
621abe55efSEd Tanous  - Regex:           '^"config.h"'
631abe55efSEd Tanous    Priority:        -1
64*1214b7e7SGunnar Mills  - Regex:           '^".*\.h"'
659992332bSEd Tanous    Priority:        1
66*1214b7e7SGunnar Mills  - Regex:           '^".*\.hpp"'
679992332bSEd Tanous    Priority:        2
68*1214b7e7SGunnar Mills  - Regex:           '^<.*\.h>'
699992332bSEd Tanous    Priority:        3
70*1214b7e7SGunnar Mills  - Regex:           '^<.*\.hpp>'
719140a674SEd Tanous    Priority:        4
72*1214b7e7SGunnar Mills  - Regex:           '^<.*'
73*1214b7e7SGunnar Mills    Priority:        5
74*1214b7e7SGunnar Mills  - Regex:           '.*'
75*1214b7e7SGunnar Mills    Priority:        6
769992332bSEd TanousIndentCaseLabels: true
771abe55efSEd TanousIndentWidth:     4
781abe55efSEd TanousIndentWrappedFunctionNames: true
791abe55efSEd TanousKeepEmptyLinesAtTheStartOfBlocks: true
809992332bSEd TanousMacroBlockBegin: ''
819992332bSEd TanousMacroBlockEnd:   ''
829992332bSEd TanousMaxEmptyLinesToKeep: 1
839992332bSEd TanousNamespaceIndentation: None
849992332bSEd TanousObjCBlockIndentWidth: 2
859992332bSEd TanousObjCSpaceAfterProperty: false
861abe55efSEd TanousObjCSpaceBeforeProtocolList: true
871abe55efSEd TanousPenaltyBreakBeforeFirstCallParameter: 19
889992332bSEd TanousPenaltyBreakComment: 300
899992332bSEd TanousPenaltyBreakFirstLessLess: 120
909992332bSEd TanousPenaltyBreakString: 1000
919992332bSEd TanousPenaltyExcessCharacter: 1000000
921abe55efSEd TanousPenaltyReturnTypeOnItsOwnLine: 60
939992332bSEd TanousReflowComments:  true
941ff48780SEd TanousSortIncludes:    true
95*1214b7e7SGunnar MillsSortUsingDeclarations: true
969992332bSEd TanousSpaceAfterCStyleCast: false
97*1214b7e7SGunnar MillsSpaceAfterTemplateKeyword: true
989992332bSEd TanousSpaceBeforeAssignmentOperators: true
99*1214b7e7SGunnar MillsSpaceBeforeCpp11BracedList: false
100*1214b7e7SGunnar MillsSpaceBeforeCtorInitializerColon: true
101*1214b7e7SGunnar MillsSpaceBeforeInheritanceColon: true
1029992332bSEd TanousSpaceBeforeParens: ControlStatements
103*1214b7e7SGunnar MillsSpaceBeforeRangeBasedForLoopColon: true
1049992332bSEd TanousSpaceInEmptyParentheses: false
1051abe55efSEd TanousSpacesBeforeTrailingComments: 1
1069992332bSEd TanousSpacesInAngles:  false
1079992332bSEd TanousSpacesInContainerLiterals: true
1089992332bSEd TanousSpacesInCStyleCastParentheses: false
1099992332bSEd TanousSpacesInParentheses: false
1109992332bSEd TanousSpacesInSquareBrackets: false
111*1214b7e7SGunnar MillsStandard:        Latest
1121abe55efSEd TanousTabWidth:        4
1139992332bSEd TanousUseTab:          Never
1149992332bSEd Tanous...
115*1214b7e7SGunnar Mills
116