xref: /openbmc/bmcweb/.clang-format (revision 54f7ddad)
19992332bSEd Tanous---
21abe55efSEd TanousLanguage:        Cpp
31abe55efSEd Tanous# BasedOnStyle:  LLVM
41abe55efSEd TanousAccessModifierOffset: -2
59992332bSEd TanousAlignAfterOpenBracket: Align
69992332bSEd TanousAlignConsecutiveAssignments: false
79992332bSEd TanousAlignConsecutiveDeclarations: false
81abe55efSEd TanousAlignEscapedNewlinesLeft: false
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 TanousAlwaysBreakAfterDefinitionReturnType: None
189992332bSEd TanousAlwaysBreakAfterReturnType: None
191abe55efSEd TanousAlwaysBreakBeforeMultilineStrings: false
201abe55efSEd TanousAlwaysBreakTemplateDeclarations: false
219992332bSEd TanousBinPackArguments: true
229992332bSEd TanousBinPackParameters: true
239992332bSEd TanousBraceWrapping:
24*54f7ddadSGunnar Mills  AfterCaseLabel: true
251abe55efSEd Tanous  AfterClass:      true
261abe55efSEd Tanous  AfterControlStatement: true
271abe55efSEd Tanous  AfterEnum:       true
281abe55efSEd Tanous  AfterFunction:   true
291abe55efSEd Tanous  AfterNamespace:  true
301abe55efSEd Tanous  AfterObjCDeclaration: true
311abe55efSEd Tanous  AfterStruct:     true
321abe55efSEd Tanous  AfterUnion:      true
331abe55efSEd Tanous  BeforeCatch:     true
341abe55efSEd Tanous  BeforeElse:      true
359992332bSEd Tanous  IndentBraces:    false
369992332bSEd TanousBreakBeforeBinaryOperators: None
371abe55efSEd TanousBreakBeforeBraces: Custom
389992332bSEd TanousBreakBeforeTernaryOperators: true
391abe55efSEd TanousBreakConstructorInitializers: AfterColon
401ccd57c4SEd TanousColumnLimit:     80
419992332bSEd TanousCommentPragmas:  '^ IWYU pragma:'
421abe55efSEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
439992332bSEd TanousConstructorInitializerIndentWidth: 4
449992332bSEd TanousContinuationIndentWidth: 4
459992332bSEd TanousCpp11BracedListStyle: true
469992332bSEd TanousDerivePointerAlignment: true
471abe55efSEd TanousPointerAlignment: Left
489992332bSEd TanousDisableFormat:   false
499992332bSEd TanousExperimentalAutoDetectBinPacking: false
501abe55efSEd TanousFixNamespaceComments: true
519992332bSEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
521abe55efSEd TanousIncludeBlocks: Regroup
539992332bSEd TanousIncludeCategories:
549140a674SEd Tanous  - Regex:           '^[<"](gtest|gmock)'
551abe55efSEd Tanous    Priority:        5
561abe55efSEd Tanous  - Regex:           '^"config.h"'
571abe55efSEd Tanous    Priority:        -1
581abe55efSEd Tanous  - Regex:           '^".*\.hpp"'
599992332bSEd Tanous    Priority:        1
601abe55efSEd Tanous  - Regex:           '^<.*\.h>'
619992332bSEd Tanous    Priority:        2
629140a674SEd Tanous  - Regex:           '^<.*'
639992332bSEd Tanous    Priority:        3
649140a674SEd Tanous  - Regex:           '.*'
659140a674SEd Tanous    Priority:        4
669992332bSEd TanousIndentCaseLabels: true
671abe55efSEd TanousIndentWidth:     4
681abe55efSEd TanousIndentWrappedFunctionNames: true
691abe55efSEd TanousKeepEmptyLinesAtTheStartOfBlocks: true
709992332bSEd TanousMacroBlockBegin: ''
719992332bSEd TanousMacroBlockEnd:   ''
729992332bSEd TanousMaxEmptyLinesToKeep: 1
739992332bSEd TanousNamespaceIndentation: None
749992332bSEd TanousObjCBlockIndentWidth: 2
759992332bSEd TanousObjCSpaceAfterProperty: false
761abe55efSEd TanousObjCSpaceBeforeProtocolList: true
771abe55efSEd TanousPenaltyBreakBeforeFirstCallParameter: 19
789992332bSEd TanousPenaltyBreakComment: 300
799992332bSEd TanousPenaltyBreakFirstLessLess: 120
809992332bSEd TanousPenaltyBreakString: 1000
819992332bSEd TanousPenaltyExcessCharacter: 1000000
821abe55efSEd TanousPenaltyReturnTypeOnItsOwnLine: 60
831abe55efSEd TanousPointerAlignment: Right
849992332bSEd TanousReflowComments:  true
851ff48780SEd TanousSortIncludes:    true
869992332bSEd TanousSpaceAfterCStyleCast: false
879992332bSEd TanousSpaceBeforeAssignmentOperators: true
889992332bSEd TanousSpaceBeforeParens: ControlStatements
899992332bSEd TanousSpaceInEmptyParentheses: false
901abe55efSEd TanousSpacesBeforeTrailingComments: 1
919992332bSEd TanousSpacesInAngles:  false
929992332bSEd TanousSpacesInContainerLiterals: true
939992332bSEd TanousSpacesInCStyleCastParentheses: false
949992332bSEd TanousSpacesInParentheses: false
959992332bSEd TanousSpacesInSquareBrackets: false
961abe55efSEd TanousStandard:        Cpp11
971abe55efSEd TanousTabWidth:        4
989992332bSEd TanousUseTab:          Never
999992332bSEd Tanous...
100