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