xref: /openbmc/bmcweb/.clang-format (revision 1abe55ef)
19992332bSEd Tanous---
2*1abe55efSEd TanousLanguage:        Cpp
3*1abe55efSEd Tanous# BasedOnStyle:  LLVM
4*1abe55efSEd TanousAccessModifierOffset: -2
59992332bSEd TanousAlignAfterOpenBracket: Align
69992332bSEd TanousAlignConsecutiveAssignments: false
79992332bSEd TanousAlignConsecutiveDeclarations: false
8*1abe55efSEd TanousAlignEscapedNewlinesLeft: false
99992332bSEd TanousAlignOperands:   true
109992332bSEd TanousAlignTrailingComments: true
119992332bSEd TanousAllowAllParametersOfDeclarationOnNextLine: true
129992332bSEd TanousAllowShortBlocksOnASingleLine: false
139992332bSEd TanousAllowShortCaseLabelsOnASingleLine: false
14*1abe55efSEd TanousAllowShortFunctionsOnASingleLine: None
15*1abe55efSEd TanousAllowShortIfStatementsOnASingleLine: false
16*1abe55efSEd TanousAllowShortLoopsOnASingleLine: false
179992332bSEd TanousAlwaysBreakAfterDefinitionReturnType: None
189992332bSEd TanousAlwaysBreakAfterReturnType: None
19*1abe55efSEd TanousAlwaysBreakBeforeMultilineStrings: false
20*1abe55efSEd TanousAlwaysBreakTemplateDeclarations: false
219992332bSEd TanousBinPackArguments: true
229992332bSEd TanousBinPackParameters: true
239992332bSEd TanousBraceWrapping:
24*1abe55efSEd Tanous  AfterClass:      true
25*1abe55efSEd Tanous  AfterControlStatement: true
26*1abe55efSEd Tanous  AfterEnum:       true
27*1abe55efSEd Tanous  AfterFunction:   true
28*1abe55efSEd Tanous  AfterNamespace:  true
29*1abe55efSEd Tanous  AfterObjCDeclaration: true
30*1abe55efSEd Tanous  AfterStruct:     true
31*1abe55efSEd Tanous  AfterUnion:      true
32*1abe55efSEd Tanous  BeforeCatch:     true
33*1abe55efSEd Tanous  BeforeElse:      true
349992332bSEd Tanous  IndentBraces:    false
359992332bSEd TanousBreakBeforeBinaryOperators: None
36*1abe55efSEd TanousBreakBeforeBraces: Custom
379992332bSEd TanousBreakBeforeTernaryOperators: true
38*1abe55efSEd TanousBreakConstructorInitializers: AfterColon
391ccd57c4SEd TanousColumnLimit:     80
409992332bSEd TanousCommentPragmas:  '^ IWYU pragma:'
41*1abe55efSEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
429992332bSEd TanousConstructorInitializerIndentWidth: 4
439992332bSEd TanousContinuationIndentWidth: 4
449992332bSEd TanousCpp11BracedListStyle: true
459992332bSEd TanousDerivePointerAlignment: true
46*1abe55efSEd TanousPointerAlignment: Left
479992332bSEd TanousDisableFormat:   false
489992332bSEd TanousExperimentalAutoDetectBinPacking: false
49*1abe55efSEd TanousFixNamespaceComments: true
509992332bSEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51*1abe55efSEd TanousIncludeBlocks: Regroup
529992332bSEd TanousIncludeCategories:
539140a674SEd Tanous  - Regex:           '^[<"](gtest|gmock)'
54*1abe55efSEd Tanous    Priority:        5
55*1abe55efSEd Tanous  - Regex:           '^"config.h"'
56*1abe55efSEd Tanous    Priority:        -1
57*1abe55efSEd Tanous  - Regex:           '^".*\.hpp"'
589992332bSEd Tanous    Priority:        1
59*1abe55efSEd Tanous  - Regex:           '^<.*\.h>'
609992332bSEd Tanous    Priority:        2
619140a674SEd Tanous  - Regex:           '^<.*'
629992332bSEd Tanous    Priority:        3
639140a674SEd Tanous  - Regex:           '.*'
649140a674SEd Tanous    Priority:        4
659992332bSEd TanousIndentCaseLabels: true
66*1abe55efSEd TanousIndentWidth:     4
67*1abe55efSEd TanousIndentWrappedFunctionNames: true
68*1abe55efSEd TanousKeepEmptyLinesAtTheStartOfBlocks: true
699992332bSEd TanousMacroBlockBegin: ''
709992332bSEd TanousMacroBlockEnd:   ''
719992332bSEd TanousMaxEmptyLinesToKeep: 1
729992332bSEd TanousNamespaceIndentation: None
739992332bSEd TanousObjCBlockIndentWidth: 2
749992332bSEd TanousObjCSpaceAfterProperty: false
75*1abe55efSEd TanousObjCSpaceBeforeProtocolList: true
76*1abe55efSEd TanousPenaltyBreakBeforeFirstCallParameter: 19
779992332bSEd TanousPenaltyBreakComment: 300
789992332bSEd TanousPenaltyBreakFirstLessLess: 120
799992332bSEd TanousPenaltyBreakString: 1000
809992332bSEd TanousPenaltyExcessCharacter: 1000000
81*1abe55efSEd TanousPenaltyReturnTypeOnItsOwnLine: 60
82*1abe55efSEd TanousPointerAlignment: Right
839992332bSEd TanousReflowComments:  true
841ff48780SEd TanousSortIncludes:    true
859992332bSEd TanousSpaceAfterCStyleCast: false
869992332bSEd TanousSpaceBeforeAssignmentOperators: true
879992332bSEd TanousSpaceBeforeParens: ControlStatements
889992332bSEd TanousSpaceInEmptyParentheses: false
89*1abe55efSEd TanousSpacesBeforeTrailingComments: 1
909992332bSEd TanousSpacesInAngles:  false
919992332bSEd TanousSpacesInContainerLiterals: true
929992332bSEd TanousSpacesInCStyleCastParentheses: false
939992332bSEd TanousSpacesInParentheses: false
949992332bSEd TanousSpacesInSquareBrackets: false
95*1abe55efSEd TanousStandard:        Cpp11
96*1abe55efSEd TanousTabWidth:        4
979992332bSEd TanousUseTab:          Never
989992332bSEd Tanous...
99