xref: /openbmc/phosphor-logging/.clang-format (revision ac1ba3f2)
1f18bf836SPatrick Venture---
2f18bf836SPatrick VentureLanguage:        Cpp
3f18bf836SPatrick Venture# BasedOnStyle:  LLVM
4f18bf836SPatrick VentureAccessModifierOffset: -2
5f18bf836SPatrick VentureAlignAfterOpenBracket: Align
6f18bf836SPatrick VentureAlignConsecutiveAssignments: false
7f18bf836SPatrick VentureAlignConsecutiveDeclarations: false
82544b419SPatrick WilliamsAlignEscapedNewlines: Right
92544b419SPatrick WilliamsAlignOperands:  Align
10*ac1ba3f2SPatrick WilliamsAlignTrailingComments:
11*ac1ba3f2SPatrick Williams  Kind: Always
12*ac1ba3f2SPatrick Williams  OverEmptyLines: 1
13f18bf836SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
142544b419SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15f18bf836SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
162544b419SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17f18bf836SPatrick VentureAllowShortIfStatementsOnASingleLine: false
18f18bf836SPatrick VentureAllowShortLoopsOnASingleLine: false
19f18bf836SPatrick VentureAlwaysBreakAfterReturnType: None
20f18bf836SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
212544b419SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
22f18bf836SPatrick VentureBinPackArguments: true
23f18bf836SPatrick VentureBinPackParameters: true
24f18bf836SPatrick VentureBraceWrapping:
2518f4b6e8SMatt Spinler  AfterCaseLabel:  true
26f18bf836SPatrick Venture  AfterClass:      true
27f18bf836SPatrick Venture  AfterControlStatement: true
28f18bf836SPatrick Venture  AfterEnum:       true
29f18bf836SPatrick Venture  AfterFunction:   true
30f18bf836SPatrick Venture  AfterNamespace:  true
31f18bf836SPatrick Venture  AfterObjCDeclaration: true
32f18bf836SPatrick Venture  AfterStruct:     true
33f18bf836SPatrick Venture  AfterUnion:      true
342544b419SPatrick Williams  AfterExternBlock: true
35f18bf836SPatrick Venture  BeforeCatch:     true
36f18bf836SPatrick Venture  BeforeElse:      true
37f18bf836SPatrick Venture  IndentBraces:    false
382544b419SPatrick Williams  SplitEmptyFunction:   false
392544b419SPatrick Williams  SplitEmptyRecord:     false
402544b419SPatrick Williams  SplitEmptyNamespace:  false
41*ac1ba3f2SPatrick WilliamsBreakAfterAttributes: Never
42f18bf836SPatrick VentureBreakBeforeBinaryOperators: None
43f18bf836SPatrick VentureBreakBeforeBraces: Custom
44f18bf836SPatrick VentureBreakBeforeTernaryOperators: true
45f18bf836SPatrick VentureBreakConstructorInitializers: AfterColon
462544b419SPatrick WilliamsBreakInheritanceList: AfterColon
472544b419SPatrick WilliamsBreakStringLiterals: false
48f18bf836SPatrick VentureColumnLimit:     80
49f18bf836SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
502544b419SPatrick WilliamsCompactNamespaces: false
51f18bf836SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
52f18bf836SPatrick VentureConstructorInitializerIndentWidth: 4
53f18bf836SPatrick VentureContinuationIndentWidth: 4
54f18bf836SPatrick VentureCpp11BracedListStyle: true
552544b419SPatrick WilliamsDeriveLineEnding: false
56f18bf836SPatrick VentureDerivePointerAlignment: false
57f18bf836SPatrick VenturePointerAlignment: Left
58f18bf836SPatrick VentureDisableFormat:   false
59f18bf836SPatrick VentureExperimentalAutoDetectBinPacking: false
60f18bf836SPatrick VentureFixNamespaceComments: true
61f18bf836SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
62f18bf836SPatrick VentureIncludeBlocks: Regroup
63f18bf836SPatrick VentureIncludeCategories:
64f18bf836SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
652544b419SPatrick Williams    Priority:        7
66f18bf836SPatrick Venture  - Regex:           '^"config.h"'
67f18bf836SPatrick Venture    Priority:        -1
682544b419SPatrick Williams  - Regex:           '^".*\.h"'
69f18bf836SPatrick Venture    Priority:        1
702544b419SPatrick Williams  - Regex:           '^".*\.hpp"'
71f18bf836SPatrick Venture    Priority:        2
722544b419SPatrick Williams  - Regex:           '^<.*\.h>'
73f18bf836SPatrick Venture    Priority:        3
742544b419SPatrick Williams  - Regex:           '^<.*\.hpp>'
75f18bf836SPatrick Venture    Priority:        4
762544b419SPatrick Williams  - Regex:           '^<.*'
772544b419SPatrick Williams    Priority:        5
782544b419SPatrick Williams  - Regex:           '.*'
792544b419SPatrick Williams    Priority:        6
80f18bf836SPatrick VentureIndentCaseLabels: true
812544b419SPatrick WilliamsIndentRequiresClause: true
82f18bf836SPatrick VentureIndentWidth:     4
83f18bf836SPatrick VentureIndentWrappedFunctionNames: true
84*ac1ba3f2SPatrick WilliamsInsertNewlineAtEOF: true
852544b419SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*ac1ba3f2SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*ac1ba3f2SPatrick WilliamsLineEnding: LF
88f18bf836SPatrick VentureMacroBlockBegin: ''
89f18bf836SPatrick VentureMacroBlockEnd:   ''
90f18bf836SPatrick VentureMaxEmptyLinesToKeep: 1
91f18bf836SPatrick VentureNamespaceIndentation: None
92f18bf836SPatrick VentureObjCBlockIndentWidth: 2
93f18bf836SPatrick VentureObjCSpaceAfterProperty: false
94f18bf836SPatrick VentureObjCSpaceBeforeProtocolList: true
952544b419SPatrick WilliamsPenaltyBreakAssignment: 25
96f18bf836SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
97f18bf836SPatrick VenturePenaltyBreakComment: 300
98f18bf836SPatrick VenturePenaltyBreakFirstLessLess: 120
99f18bf836SPatrick VenturePenaltyBreakString: 1000
100f18bf836SPatrick VenturePenaltyExcessCharacter: 1000000
101f18bf836SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
1022544b419SPatrick WilliamsPenaltyIndentedWhitespace: 0
1032544b419SPatrick WilliamsQualifierAlignment: Left
1042544b419SPatrick WilliamsReferenceAlignment: Left
105f18bf836SPatrick VentureReflowComments:  true
1062544b419SPatrick WilliamsRequiresClausePosition: OwnLine
107*ac1ba3f2SPatrick WilliamsRequiresExpressionIndentation: Keyword
108f18bf836SPatrick VentureSortIncludes:    true
109f18bf836SPatrick VentureSortUsingDeclarations: true
110f18bf836SPatrick VentureSpaceAfterCStyleCast: false
1112544b419SPatrick WilliamsSpaceAfterTemplateKeyword: true
112f18bf836SPatrick VentureSpaceBeforeAssignmentOperators: true
1132544b419SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1142544b419SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1152544b419SPatrick WilliamsSpaceBeforeInheritanceColon: true
116f18bf836SPatrick VentureSpaceBeforeParens: ControlStatements
1172544b419SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
118f18bf836SPatrick VentureSpaceInEmptyParentheses: false
119f18bf836SPatrick VentureSpacesBeforeTrailingComments: 1
120f18bf836SPatrick VentureSpacesInAngles:  false
121f18bf836SPatrick VentureSpacesInContainerLiterals: true
122f18bf836SPatrick VentureSpacesInCStyleCastParentheses: false
123f18bf836SPatrick VentureSpacesInParentheses: false
124f18bf836SPatrick VentureSpacesInSquareBrackets: false
1252544b419SPatrick WilliamsStandard:        Latest
126f18bf836SPatrick VentureTabWidth:        4
127f18bf836SPatrick VentureUseTab:          Never
128f18bf836SPatrick Venture...
129f18bf836SPatrick Venture
130