xref: /openbmc/phosphor-logging/.clang-format (revision f18bf836)
1*f18bf836SPatrick Venture---
2*f18bf836SPatrick VentureLanguage:        Cpp
3*f18bf836SPatrick Venture# BasedOnStyle:  LLVM
4*f18bf836SPatrick VentureAccessModifierOffset: -2
5*f18bf836SPatrick VentureAlignAfterOpenBracket: Align
6*f18bf836SPatrick VentureAlignConsecutiveAssignments: false
7*f18bf836SPatrick VentureAlignConsecutiveDeclarations: false
8*f18bf836SPatrick VentureAlignEscapedNewlinesLeft: false
9*f18bf836SPatrick VentureAlignOperands:   true
10*f18bf836SPatrick VentureAlignTrailingComments: true
11*f18bf836SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
12*f18bf836SPatrick VentureAllowShortBlocksOnASingleLine: false
13*f18bf836SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
14*f18bf836SPatrick VentureAllowShortFunctionsOnASingleLine: None
15*f18bf836SPatrick VentureAllowShortIfStatementsOnASingleLine: false
16*f18bf836SPatrick VentureAllowShortLoopsOnASingleLine: false
17*f18bf836SPatrick VentureAlwaysBreakAfterDefinitionReturnType: None
18*f18bf836SPatrick VentureAlwaysBreakAfterReturnType: None
19*f18bf836SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
20*f18bf836SPatrick VentureAlwaysBreakTemplateDeclarations: true
21*f18bf836SPatrick VentureBinPackArguments: true
22*f18bf836SPatrick VentureBinPackParameters: true
23*f18bf836SPatrick VentureBraceWrapping:
24*f18bf836SPatrick Venture  AfterClass:      true
25*f18bf836SPatrick Venture  AfterControlStatement: true
26*f18bf836SPatrick Venture  AfterEnum:       true
27*f18bf836SPatrick Venture  AfterFunction:   true
28*f18bf836SPatrick Venture  AfterNamespace:  true
29*f18bf836SPatrick Venture  AfterObjCDeclaration: true
30*f18bf836SPatrick Venture  AfterStruct:     true
31*f18bf836SPatrick Venture  AfterUnion:      true
32*f18bf836SPatrick Venture  BeforeCatch:     true
33*f18bf836SPatrick Venture  BeforeElse:      true
34*f18bf836SPatrick Venture  IndentBraces:    false
35*f18bf836SPatrick VentureBreakBeforeBinaryOperators: None
36*f18bf836SPatrick VentureBreakBeforeBraces: Custom
37*f18bf836SPatrick VentureBreakBeforeTernaryOperators: true
38*f18bf836SPatrick VentureBreakConstructorInitializers: AfterColon
39*f18bf836SPatrick VentureColumnLimit:     80
40*f18bf836SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
41*f18bf836SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
42*f18bf836SPatrick VentureConstructorInitializerIndentWidth: 4
43*f18bf836SPatrick VentureContinuationIndentWidth: 4
44*f18bf836SPatrick VentureCpp11BracedListStyle: true
45*f18bf836SPatrick VentureDerivePointerAlignment: false
46*f18bf836SPatrick VenturePointerAlignment: Left
47*f18bf836SPatrick VentureDisableFormat:   false
48*f18bf836SPatrick VentureExperimentalAutoDetectBinPacking: false
49*f18bf836SPatrick VentureFixNamespaceComments: true
50*f18bf836SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51*f18bf836SPatrick VentureIncludeBlocks: Regroup
52*f18bf836SPatrick VentureIncludeCategories:
53*f18bf836SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
54*f18bf836SPatrick Venture    Priority:        5
55*f18bf836SPatrick Venture  - Regex:           '^"config.h"'
56*f18bf836SPatrick Venture    Priority:        -1
57*f18bf836SPatrick Venture  - Regex:           '^".*\.hpp"'
58*f18bf836SPatrick Venture    Priority:        1
59*f18bf836SPatrick Venture  - Regex:           '^<.*\.h>'
60*f18bf836SPatrick Venture    Priority:        2
61*f18bf836SPatrick Venture  - Regex:           '^<.*'
62*f18bf836SPatrick Venture    Priority:        3
63*f18bf836SPatrick Venture  - Regex:           '.*'
64*f18bf836SPatrick Venture    Priority:        4
65*f18bf836SPatrick VentureIndentCaseLabels: true
66*f18bf836SPatrick VentureIndentWidth:     4
67*f18bf836SPatrick VentureIndentWrappedFunctionNames: true
68*f18bf836SPatrick VentureKeepEmptyLinesAtTheStartOfBlocks: true
69*f18bf836SPatrick VentureMacroBlockBegin: ''
70*f18bf836SPatrick VentureMacroBlockEnd:   ''
71*f18bf836SPatrick VentureMaxEmptyLinesToKeep: 1
72*f18bf836SPatrick VentureNamespaceIndentation: None
73*f18bf836SPatrick VentureObjCBlockIndentWidth: 2
74*f18bf836SPatrick VentureObjCSpaceAfterProperty: false
75*f18bf836SPatrick VentureObjCSpaceBeforeProtocolList: true
76*f18bf836SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
77*f18bf836SPatrick VenturePenaltyBreakComment: 300
78*f18bf836SPatrick VenturePenaltyBreakFirstLessLess: 120
79*f18bf836SPatrick VenturePenaltyBreakString: 1000
80*f18bf836SPatrick VenturePenaltyExcessCharacter: 1000000
81*f18bf836SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
82*f18bf836SPatrick VentureReflowComments:  true
83*f18bf836SPatrick VentureSortIncludes:    true
84*f18bf836SPatrick VentureSortUsingDeclarations: true
85*f18bf836SPatrick VentureSpaceAfterCStyleCast: false
86*f18bf836SPatrick VentureSpaceBeforeAssignmentOperators: true
87*f18bf836SPatrick VentureSpaceBeforeParens: ControlStatements
88*f18bf836SPatrick VentureSpaceInEmptyParentheses: false
89*f18bf836SPatrick VentureSpacesBeforeTrailingComments: 1
90*f18bf836SPatrick VentureSpacesInAngles:  false
91*f18bf836SPatrick VentureSpacesInContainerLiterals: true
92*f18bf836SPatrick VentureSpacesInCStyleCastParentheses: false
93*f18bf836SPatrick VentureSpacesInParentheses: false
94*f18bf836SPatrick VentureSpacesInSquareBrackets: false
95*f18bf836SPatrick VentureStandard:        Cpp11
96*f18bf836SPatrick VentureTabWidth:        4
97*f18bf836SPatrick VentureUseTab:          Never
98*f18bf836SPatrick Venture...
99*f18bf836SPatrick Venture
100