xref: /openbmc/phosphor-logging/.clang-format (revision 2544b419)
1f18bf836SPatrick Venture---
2f18bf836SPatrick VentureLanguage:        Cpp
3f18bf836SPatrick Venture# BasedOnStyle:  LLVM
4f18bf836SPatrick VentureAccessModifierOffset: -2
5f18bf836SPatrick VentureAlignAfterOpenBracket: Align
6f18bf836SPatrick VentureAlignConsecutiveAssignments: false
7f18bf836SPatrick VentureAlignConsecutiveDeclarations: false
8*2544b419SPatrick WilliamsAlignEscapedNewlines: Right
9*2544b419SPatrick WilliamsAlignOperands:  Align
10f18bf836SPatrick VentureAlignTrailingComments: true
11f18bf836SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
12*2544b419SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
13f18bf836SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
14*2544b419SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
15f18bf836SPatrick VentureAllowShortIfStatementsOnASingleLine: false
16f18bf836SPatrick VentureAllowShortLoopsOnASingleLine: false
17f18bf836SPatrick VentureAlwaysBreakAfterReturnType: None
18f18bf836SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
19*2544b419SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
20f18bf836SPatrick VentureBinPackArguments: true
21f18bf836SPatrick VentureBinPackParameters: true
22f18bf836SPatrick VentureBraceWrapping:
2318f4b6e8SMatt Spinler  AfterCaseLabel:  true
24f18bf836SPatrick Venture  AfterClass:      true
25f18bf836SPatrick Venture  AfterControlStatement: true
26f18bf836SPatrick Venture  AfterEnum:       true
27f18bf836SPatrick Venture  AfterFunction:   true
28f18bf836SPatrick Venture  AfterNamespace:  true
29f18bf836SPatrick Venture  AfterObjCDeclaration: true
30f18bf836SPatrick Venture  AfterStruct:     true
31f18bf836SPatrick Venture  AfterUnion:      true
32*2544b419SPatrick Williams  AfterExternBlock: true
33f18bf836SPatrick Venture  BeforeCatch:     true
34f18bf836SPatrick Venture  BeforeElse:      true
35f18bf836SPatrick Venture  IndentBraces:    false
36*2544b419SPatrick Williams  SplitEmptyFunction:   false
37*2544b419SPatrick Williams  SplitEmptyRecord:     false
38*2544b419SPatrick Williams  SplitEmptyNamespace:  false
39f18bf836SPatrick VentureBreakBeforeBinaryOperators: None
40f18bf836SPatrick VentureBreakBeforeBraces: Custom
41f18bf836SPatrick VentureBreakBeforeTernaryOperators: true
42f18bf836SPatrick VentureBreakConstructorInitializers: AfterColon
43*2544b419SPatrick WilliamsBreakInheritanceList: AfterColon
44*2544b419SPatrick WilliamsBreakStringLiterals: false
45f18bf836SPatrick VentureColumnLimit:     80
46f18bf836SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
47*2544b419SPatrick WilliamsCompactNamespaces: false
48f18bf836SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
49f18bf836SPatrick VentureConstructorInitializerIndentWidth: 4
50f18bf836SPatrick VentureContinuationIndentWidth: 4
51f18bf836SPatrick VentureCpp11BracedListStyle: true
52*2544b419SPatrick WilliamsDeriveLineEnding: false
53f18bf836SPatrick VentureDerivePointerAlignment: false
54f18bf836SPatrick VenturePointerAlignment: Left
55f18bf836SPatrick VentureDisableFormat:   false
56f18bf836SPatrick VentureExperimentalAutoDetectBinPacking: false
57f18bf836SPatrick VentureFixNamespaceComments: true
58f18bf836SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
59f18bf836SPatrick VentureIncludeBlocks: Regroup
60f18bf836SPatrick VentureIncludeCategories:
61f18bf836SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
62*2544b419SPatrick Williams    Priority:        7
63f18bf836SPatrick Venture  - Regex:           '^"config.h"'
64f18bf836SPatrick Venture    Priority:        -1
65*2544b419SPatrick Williams  - Regex:           '^".*\.h"'
66f18bf836SPatrick Venture    Priority:        1
67*2544b419SPatrick Williams  - Regex:           '^".*\.hpp"'
68f18bf836SPatrick Venture    Priority:        2
69*2544b419SPatrick Williams  - Regex:           '^<.*\.h>'
70f18bf836SPatrick Venture    Priority:        3
71*2544b419SPatrick Williams  - Regex:           '^<.*\.hpp>'
72f18bf836SPatrick Venture    Priority:        4
73*2544b419SPatrick Williams  - Regex:           '^<.*'
74*2544b419SPatrick Williams    Priority:        5
75*2544b419SPatrick Williams  - Regex:           '.*'
76*2544b419SPatrick Williams    Priority:        6
77f18bf836SPatrick VentureIndentCaseLabels: true
78*2544b419SPatrick WilliamsIndentRequiresClause: true
79f18bf836SPatrick VentureIndentWidth:     4
80f18bf836SPatrick VentureIndentWrappedFunctionNames: true
81*2544b419SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
82f18bf836SPatrick VentureMacroBlockBegin: ''
83f18bf836SPatrick VentureMacroBlockEnd:   ''
84f18bf836SPatrick VentureMaxEmptyLinesToKeep: 1
85f18bf836SPatrick VentureNamespaceIndentation: None
86f18bf836SPatrick VentureObjCBlockIndentWidth: 2
87f18bf836SPatrick VentureObjCSpaceAfterProperty: false
88f18bf836SPatrick VentureObjCSpaceBeforeProtocolList: true
89*2544b419SPatrick WilliamsPenaltyBreakAssignment: 25
90f18bf836SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
91f18bf836SPatrick VenturePenaltyBreakComment: 300
92f18bf836SPatrick VenturePenaltyBreakFirstLessLess: 120
93f18bf836SPatrick VenturePenaltyBreakString: 1000
94f18bf836SPatrick VenturePenaltyExcessCharacter: 1000000
95f18bf836SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
96*2544b419SPatrick WilliamsPenaltyIndentedWhitespace: 0
97*2544b419SPatrick WilliamsQualifierAlignment: Left
98*2544b419SPatrick WilliamsReferenceAlignment: Left
99f18bf836SPatrick VentureReflowComments:  true
100*2544b419SPatrick WilliamsRequiresClausePosition: OwnLine
101f18bf836SPatrick VentureSortIncludes:    true
102f18bf836SPatrick VentureSortUsingDeclarations: true
103f18bf836SPatrick VentureSpaceAfterCStyleCast: false
104*2544b419SPatrick WilliamsSpaceAfterTemplateKeyword: true
105f18bf836SPatrick VentureSpaceBeforeAssignmentOperators: true
106*2544b419SPatrick WilliamsSpaceBeforeCpp11BracedList: false
107*2544b419SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
108*2544b419SPatrick WilliamsSpaceBeforeInheritanceColon: true
109f18bf836SPatrick VentureSpaceBeforeParens: ControlStatements
110*2544b419SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
111f18bf836SPatrick VentureSpaceInEmptyParentheses: false
112f18bf836SPatrick VentureSpacesBeforeTrailingComments: 1
113f18bf836SPatrick VentureSpacesInAngles:  false
114f18bf836SPatrick VentureSpacesInContainerLiterals: true
115f18bf836SPatrick VentureSpacesInCStyleCastParentheses: false
116f18bf836SPatrick VentureSpacesInParentheses: false
117f18bf836SPatrick VentureSpacesInSquareBrackets: false
118*2544b419SPatrick WilliamsStandard:        Latest
119f18bf836SPatrick VentureTabWidth:        4
120*2544b419SPatrick WilliamsUseCRLF: false
121f18bf836SPatrick VentureUseTab:          Never
122f18bf836SPatrick Venture...
123f18bf836SPatrick Venture
124