xref: /openbmc/phosphor-logging/.clang-format (revision 075c7923)
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
175fb575aeSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
185fb575aeSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19f18bf836SPatrick VentureAllowShortLoopsOnASingleLine: false
20f18bf836SPatrick VentureAlwaysBreakAfterReturnType: None
21f18bf836SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
222544b419SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23f18bf836SPatrick VentureBinPackArguments: true
24f18bf836SPatrick VentureBinPackParameters: true
255fb575aeSPatrick WilliamsBitFieldColonSpacing: None
26f18bf836SPatrick VentureBraceWrapping:
2718f4b6e8SMatt Spinler  AfterCaseLabel:  true
28f18bf836SPatrick Venture  AfterClass:      true
29f18bf836SPatrick Venture  AfterControlStatement: true
30f18bf836SPatrick Venture  AfterEnum:       true
315fb575aeSPatrick 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
395fb575aeSPatrick Williams  BeforeLambdaBody: false
405fb575aeSPatrick 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
615fb575aeSPatrick WilliamsForEachMacros:
625fb575aeSPatrick Williams  - foreach
635fb575aeSPatrick Williams  - Q_FOREACH
645fb575aeSPatrick 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
845fb575aeSPatrick WilliamsIndentExternBlock: NoIndent
852544b419SPatrick WilliamsIndentRequiresClause: true
86f18bf836SPatrick VentureIndentWidth:     4
87f18bf836SPatrick VentureIndentWrappedFunctionNames: true
88ac1ba3f2SPatrick WilliamsInsertNewlineAtEOF: true
892544b419SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*075c7923SPatrick WilliamsLambdaBodyIndentation: Signature
91ac1ba3f2SPatrick WilliamsLineEnding: LF
92f18bf836SPatrick VentureMacroBlockBegin: ''
93f18bf836SPatrick VentureMacroBlockEnd:   ''
94f18bf836SPatrick VentureMaxEmptyLinesToKeep: 1
95f18bf836SPatrick VentureNamespaceIndentation: None
96f18bf836SPatrick VentureObjCBlockIndentWidth: 2
97f18bf836SPatrick VentureObjCSpaceAfterProperty: false
98f18bf836SPatrick VentureObjCSpaceBeforeProtocolList: true
995fb575aeSPatrick WilliamsPackConstructorInitializers: BinPack
1002544b419SPatrick WilliamsPenaltyBreakAssignment: 25
101*075c7923SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102f18bf836SPatrick VenturePenaltyBreakComment: 300
103f18bf836SPatrick VenturePenaltyBreakFirstLessLess: 120
104f18bf836SPatrick VenturePenaltyBreakString: 1000
105*075c7923SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106f18bf836SPatrick VenturePenaltyExcessCharacter: 1000000
107f18bf836SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
108*075c7923SPatrick WilliamsPenaltyIndentedWhitespace: 1
1095fb575aeSPatrick WilliamsPointerAlignment: Left
1102544b419SPatrick WilliamsQualifierAlignment: Left
1112544b419SPatrick WilliamsReferenceAlignment: Left
112f18bf836SPatrick VentureReflowComments:  true
1132544b419SPatrick WilliamsRequiresClausePosition: OwnLine
114ac1ba3f2SPatrick WilliamsRequiresExpressionIndentation: Keyword
1155fb575aeSPatrick WilliamsSortIncludes: CaseSensitive
116f18bf836SPatrick VentureSortUsingDeclarations: true
117f18bf836SPatrick VentureSpaceAfterCStyleCast: false
1182544b419SPatrick WilliamsSpaceAfterTemplateKeyword: true
119f18bf836SPatrick VentureSpaceBeforeAssignmentOperators: true
1202544b419SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1212544b419SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1222544b419SPatrick WilliamsSpaceBeforeInheritanceColon: true
123f18bf836SPatrick VentureSpaceBeforeParens: ControlStatements
1242544b419SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
125f18bf836SPatrick VentureSpaceInEmptyParentheses: false
126f18bf836SPatrick VentureSpacesBeforeTrailingComments: 1
1275fb575aeSPatrick WilliamsSpacesInAngles: Never
128f18bf836SPatrick VentureSpacesInContainerLiterals: true
129f18bf836SPatrick VentureSpacesInCStyleCastParentheses: false
130f18bf836SPatrick VentureSpacesInParentheses: false
131f18bf836SPatrick VentureSpacesInSquareBrackets: false
1322544b419SPatrick WilliamsStandard:        Latest
133f18bf836SPatrick VentureTabWidth:        4
134f18bf836SPatrick VentureUseTab:          Never
135f18bf836SPatrick Venture...
136f18bf836SPatrick Venture
137