xref: /openbmc/phosphor-logging/.clang-format (revision 5fb575ae)
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
10ac1ba3f2SPatrick WilliamsAlignTrailingComments:
11ac1ba3f2SPatrick Williams  Kind: Always
12ac1ba3f2SPatrick Williams  OverEmptyLines: 1
13f18bf836SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
142544b419SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15f18bf836SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
162544b419SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17*5fb575aeSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*5fb575aeSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19f18bf836SPatrick VentureAllowShortLoopsOnASingleLine: false
20f18bf836SPatrick VentureAlwaysBreakAfterReturnType: None
21f18bf836SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
222544b419SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23f18bf836SPatrick VentureBinPackArguments: true
24f18bf836SPatrick VentureBinPackParameters: true
25*5fb575aeSPatrick WilliamsBitFieldColonSpacing: None
26f18bf836SPatrick VentureBraceWrapping:
2718f4b6e8SMatt Spinler  AfterCaseLabel:  true
28f18bf836SPatrick Venture  AfterClass:      true
29f18bf836SPatrick Venture  AfterControlStatement: true
30f18bf836SPatrick Venture  AfterEnum:       true
31*5fb575aeSPatrick Williams  AfterExternBlock: true
32f18bf836SPatrick Venture  AfterFunction:   true
33f18bf836SPatrick Venture  AfterNamespace:  true
34f18bf836SPatrick Venture  AfterObjCDeclaration: true
35f18bf836SPatrick Venture  AfterStruct:     true
36f18bf836SPatrick Venture  AfterUnion:      true
37f18bf836SPatrick Venture  BeforeCatch:     true
38f18bf836SPatrick Venture  BeforeElse:      true
39*5fb575aeSPatrick Williams  BeforeLambdaBody: false
40*5fb575aeSPatrick Williams  BeforeWhile:     false
41f18bf836SPatrick Venture  IndentBraces:    false
422544b419SPatrick Williams  SplitEmptyFunction:   false
432544b419SPatrick Williams  SplitEmptyRecord:     false
442544b419SPatrick Williams  SplitEmptyNamespace:  false
45ac1ba3f2SPatrick WilliamsBreakAfterAttributes: Never
46f18bf836SPatrick VentureBreakBeforeBinaryOperators: None
47f18bf836SPatrick VentureBreakBeforeBraces: Custom
48f18bf836SPatrick VentureBreakBeforeTernaryOperators: true
49f18bf836SPatrick VentureBreakConstructorInitializers: AfterColon
502544b419SPatrick WilliamsBreakInheritanceList: AfterColon
512544b419SPatrick WilliamsBreakStringLiterals: false
52f18bf836SPatrick VentureColumnLimit:     80
53f18bf836SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
542544b419SPatrick WilliamsCompactNamespaces: false
55f18bf836SPatrick VentureConstructorInitializerIndentWidth: 4
56f18bf836SPatrick VentureContinuationIndentWidth: 4
57f18bf836SPatrick VentureCpp11BracedListStyle: true
58f18bf836SPatrick VentureDerivePointerAlignment: false
59f18bf836SPatrick VentureDisableFormat:   false
60f18bf836SPatrick VentureFixNamespaceComments: true
61*5fb575aeSPatrick WilliamsForEachMacros:
62*5fb575aeSPatrick Williams  - foreach
63*5fb575aeSPatrick Williams  - Q_FOREACH
64*5fb575aeSPatrick Williams  - BOOST_FOREACH
65f18bf836SPatrick VentureIncludeBlocks: Regroup
66f18bf836SPatrick VentureIncludeCategories:
67f18bf836SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
682544b419SPatrick Williams    Priority:        7
69f18bf836SPatrick Venture  - Regex:           '^"config.h"'
70f18bf836SPatrick Venture    Priority:        -1
712544b419SPatrick Williams  - Regex:           '^".*\.h"'
72f18bf836SPatrick Venture    Priority:        1
732544b419SPatrick Williams  - Regex:           '^".*\.hpp"'
74f18bf836SPatrick Venture    Priority:        2
752544b419SPatrick Williams  - Regex:           '^<.*\.h>'
76f18bf836SPatrick Venture    Priority:        3
772544b419SPatrick Williams  - Regex:           '^<.*\.hpp>'
78f18bf836SPatrick Venture    Priority:        4
792544b419SPatrick Williams  - Regex:           '^<.*'
802544b419SPatrick Williams    Priority:        5
812544b419SPatrick Williams  - Regex:           '.*'
822544b419SPatrick Williams    Priority:        6
83f18bf836SPatrick VentureIndentCaseLabels: true
84*5fb575aeSPatrick WilliamsIndentExternBlock: NoIndent
852544b419SPatrick WilliamsIndentRequiresClause: true
86f18bf836SPatrick VentureIndentWidth:     4
87f18bf836SPatrick VentureIndentWrappedFunctionNames: true
88ac1ba3f2SPatrick WilliamsInsertNewlineAtEOF: true
892544b419SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90ac1ba3f2SPatrick WilliamsLambdaBodyIndentation: OuterScope
91ac1ba3f2SPatrick WilliamsLineEnding: LF
92f18bf836SPatrick VentureMacroBlockBegin: ''
93f18bf836SPatrick VentureMacroBlockEnd:   ''
94f18bf836SPatrick VentureMaxEmptyLinesToKeep: 1
95f18bf836SPatrick VentureNamespaceIndentation: None
96f18bf836SPatrick VentureObjCBlockIndentWidth: 2
97f18bf836SPatrick VentureObjCSpaceAfterProperty: false
98f18bf836SPatrick VentureObjCSpaceBeforeProtocolList: true
99*5fb575aeSPatrick WilliamsPackConstructorInitializers: BinPack
1002544b419SPatrick WilliamsPenaltyBreakAssignment: 25
101f18bf836SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
102f18bf836SPatrick VenturePenaltyBreakComment: 300
103f18bf836SPatrick VenturePenaltyBreakFirstLessLess: 120
104f18bf836SPatrick VenturePenaltyBreakString: 1000
105f18bf836SPatrick VenturePenaltyExcessCharacter: 1000000
106f18bf836SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
1072544b419SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*5fb575aeSPatrick WilliamsPointerAlignment: Left
1092544b419SPatrick WilliamsQualifierAlignment: Left
1102544b419SPatrick WilliamsReferenceAlignment: Left
111f18bf836SPatrick VentureReflowComments:  true
1122544b419SPatrick WilliamsRequiresClausePosition: OwnLine
113ac1ba3f2SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*5fb575aeSPatrick WilliamsSortIncludes: CaseSensitive
115f18bf836SPatrick VentureSortUsingDeclarations: true
116f18bf836SPatrick VentureSpaceAfterCStyleCast: false
1172544b419SPatrick WilliamsSpaceAfterTemplateKeyword: true
118f18bf836SPatrick VentureSpaceBeforeAssignmentOperators: true
1192544b419SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1202544b419SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1212544b419SPatrick WilliamsSpaceBeforeInheritanceColon: true
122f18bf836SPatrick VentureSpaceBeforeParens: ControlStatements
1232544b419SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
124f18bf836SPatrick VentureSpaceInEmptyParentheses: false
125f18bf836SPatrick VentureSpacesBeforeTrailingComments: 1
126*5fb575aeSPatrick WilliamsSpacesInAngles: Never
127f18bf836SPatrick VentureSpacesInContainerLiterals: true
128f18bf836SPatrick VentureSpacesInCStyleCastParentheses: false
129f18bf836SPatrick VentureSpacesInParentheses: false
130f18bf836SPatrick VentureSpacesInSquareBrackets: false
1312544b419SPatrick WilliamsStandard:        Latest
132f18bf836SPatrick VentureTabWidth:        4
133f18bf836SPatrick VentureUseTab:          Never
134f18bf836SPatrick Venture...
135f18bf836SPatrick Venture
136