xref: /openbmc/telemetry/.clang-format (revision c7935fa1)
1b357ed5dSAdrian Ambrożewicz---
2b357ed5dSAdrian AmbrożewiczLanguage:        Cpp
3b357ed5dSAdrian Ambrożewicz# BasedOnStyle:  LLVM
4b357ed5dSAdrian AmbrożewiczAccessModifierOffset: -2
5b357ed5dSAdrian AmbrożewiczAlignAfterOpenBracket: Align
6b357ed5dSAdrian AmbrożewiczAlignConsecutiveAssignments: false
7b357ed5dSAdrian AmbrożewiczAlignConsecutiveDeclarations: false
8b357ed5dSAdrian AmbrożewiczAlignEscapedNewlines: Right
93a1c297aSPatrick WilliamsAlignOperands:  Align
103a1c297aSPatrick WilliamsAlignTrailingComments:
113a1c297aSPatrick Williams  Kind: Always
123a1c297aSPatrick Williams  OverEmptyLines: 1
13b357ed5dSAdrian AmbrożewiczAllowAllParametersOfDeclarationOnNextLine: true
143a1c297aSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15b357ed5dSAdrian AmbrożewiczAllowShortCaseLabelsOnASingleLine: false
163a1c297aSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17*c7935fa1SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*c7935fa1SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19b357ed5dSAdrian AmbrożewiczAllowShortLoopsOnASingleLine: false
20b357ed5dSAdrian AmbrożewiczAlwaysBreakAfterReturnType: None
21b357ed5dSAdrian AmbrożewiczAlwaysBreakBeforeMultilineStrings: false
22b357ed5dSAdrian AmbrożewiczAlwaysBreakTemplateDeclarations: Yes
23b357ed5dSAdrian AmbrożewiczBinPackArguments: true
24b357ed5dSAdrian AmbrożewiczBinPackParameters: true
25*c7935fa1SPatrick WilliamsBitFieldColonSpacing: None
26b357ed5dSAdrian AmbrożewiczBraceWrapping:
27b357ed5dSAdrian Ambrożewicz  AfterCaseLabel:  true
28b357ed5dSAdrian Ambrożewicz  AfterClass:      true
29b357ed5dSAdrian Ambrożewicz  AfterControlStatement: true
30b357ed5dSAdrian Ambrożewicz  AfterEnum:       true
31*c7935fa1SPatrick Williams  AfterExternBlock: true
32b357ed5dSAdrian Ambrożewicz  AfterFunction:   true
33b357ed5dSAdrian Ambrożewicz  AfterNamespace:  true
34b357ed5dSAdrian Ambrożewicz  AfterObjCDeclaration: true
35b357ed5dSAdrian Ambrożewicz  AfterStruct:     true
36b357ed5dSAdrian Ambrożewicz  AfterUnion:      true
37b357ed5dSAdrian Ambrożewicz  BeforeCatch:     true
38b357ed5dSAdrian Ambrożewicz  BeforeElse:      true
39*c7935fa1SPatrick Williams  BeforeLambdaBody: false
40*c7935fa1SPatrick Williams  BeforeWhile:     false
41b357ed5dSAdrian Ambrożewicz  IndentBraces:    false
42b357ed5dSAdrian Ambrożewicz  SplitEmptyFunction:   false
43b357ed5dSAdrian Ambrożewicz  SplitEmptyRecord:     false
44b357ed5dSAdrian Ambrożewicz  SplitEmptyNamespace:  false
453a1c297aSPatrick WilliamsBreakAfterAttributes: Never
46b357ed5dSAdrian AmbrożewiczBreakBeforeBinaryOperators: None
47b357ed5dSAdrian AmbrożewiczBreakBeforeBraces: Custom
48b357ed5dSAdrian AmbrożewiczBreakBeforeTernaryOperators: true
49b357ed5dSAdrian AmbrożewiczBreakConstructorInitializers: AfterColon
50b357ed5dSAdrian AmbrożewiczBreakInheritanceList: AfterColon
513a1c297aSPatrick WilliamsBreakStringLiterals: false
52b357ed5dSAdrian AmbrożewiczColumnLimit:     80
53b357ed5dSAdrian AmbrożewiczCommentPragmas:  '^ IWYU pragma:'
54b357ed5dSAdrian AmbrożewiczCompactNamespaces: false
55b357ed5dSAdrian AmbrożewiczConstructorInitializerIndentWidth: 4
56b357ed5dSAdrian AmbrożewiczContinuationIndentWidth: 4
57b357ed5dSAdrian AmbrożewiczCpp11BracedListStyle: true
58b357ed5dSAdrian AmbrożewiczDerivePointerAlignment: false
59b357ed5dSAdrian AmbrożewiczDisableFormat:   false
60b357ed5dSAdrian AmbrożewiczFixNamespaceComments: true
61*c7935fa1SPatrick WilliamsForEachMacros:
62*c7935fa1SPatrick Williams  - foreach
63*c7935fa1SPatrick Williams  - Q_FOREACH
64*c7935fa1SPatrick Williams  - BOOST_FOREACH
65b357ed5dSAdrian AmbrożewiczIncludeBlocks: Regroup
66b357ed5dSAdrian AmbrożewiczIncludeCategories:
67b357ed5dSAdrian Ambrożewicz  - Regex:           '^[<"](gtest|gmock)'
68b357ed5dSAdrian Ambrożewicz    Priority:        7
69b357ed5dSAdrian Ambrożewicz  - Regex:           '^"config.h"'
70b357ed5dSAdrian Ambrożewicz    Priority:        -1
71b357ed5dSAdrian Ambrożewicz  - Regex:           '^".*\.h"'
72b357ed5dSAdrian Ambrożewicz    Priority:        1
73b357ed5dSAdrian Ambrożewicz  - Regex:           '^".*\.hpp"'
74b357ed5dSAdrian Ambrożewicz    Priority:        2
75b357ed5dSAdrian Ambrożewicz  - Regex:           '^<.*\.h>'
76b357ed5dSAdrian Ambrożewicz    Priority:        3
77b357ed5dSAdrian Ambrożewicz  - Regex:           '^<.*\.hpp>'
78b357ed5dSAdrian Ambrożewicz    Priority:        4
79b357ed5dSAdrian Ambrożewicz  - Regex:           '^<.*'
80b357ed5dSAdrian Ambrożewicz    Priority:        5
81b357ed5dSAdrian Ambrożewicz  - Regex:           '.*'
82b357ed5dSAdrian Ambrożewicz    Priority:        6
83b357ed5dSAdrian AmbrożewiczIndentCaseLabels: true
84*c7935fa1SPatrick WilliamsIndentExternBlock: NoIndent
853a1c297aSPatrick WilliamsIndentRequiresClause: true
86b357ed5dSAdrian AmbrożewiczIndentWidth:     4
87b357ed5dSAdrian AmbrożewiczIndentWrappedFunctionNames: true
883a1c297aSPatrick WilliamsInsertNewlineAtEOF: true
893a1c297aSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
903a1c297aSPatrick WilliamsLambdaBodyIndentation: OuterScope
913a1c297aSPatrick WilliamsLineEnding: LF
92b357ed5dSAdrian AmbrożewiczMacroBlockBegin: ''
93b357ed5dSAdrian AmbrożewiczMacroBlockEnd:   ''
94b357ed5dSAdrian AmbrożewiczMaxEmptyLinesToKeep: 1
95b357ed5dSAdrian AmbrożewiczNamespaceIndentation: None
96b357ed5dSAdrian AmbrożewiczObjCBlockIndentWidth: 2
97b357ed5dSAdrian AmbrożewiczObjCSpaceAfterProperty: false
98b357ed5dSAdrian AmbrożewiczObjCSpaceBeforeProtocolList: true
99*c7935fa1SPatrick WilliamsPackConstructorInitializers: BinPack
1003a1c297aSPatrick WilliamsPenaltyBreakAssignment: 25
101b357ed5dSAdrian AmbrożewiczPenaltyBreakBeforeFirstCallParameter: 19
102b357ed5dSAdrian AmbrożewiczPenaltyBreakComment: 300
103b357ed5dSAdrian AmbrożewiczPenaltyBreakFirstLessLess: 120
104b357ed5dSAdrian AmbrożewiczPenaltyBreakString: 1000
105b357ed5dSAdrian AmbrożewiczPenaltyExcessCharacter: 1000000
106b357ed5dSAdrian AmbrożewiczPenaltyReturnTypeOnItsOwnLine: 60
1073a1c297aSPatrick WilliamsPenaltyIndentedWhitespace: 0
108*c7935fa1SPatrick WilliamsPointerAlignment: Left
1093a1c297aSPatrick WilliamsQualifierAlignment: Left
1103a1c297aSPatrick WilliamsReferenceAlignment: Left
111b357ed5dSAdrian AmbrożewiczReflowComments:  true
1123a1c297aSPatrick WilliamsRequiresClausePosition: OwnLine
1133a1c297aSPatrick WilliamsRequiresExpressionIndentation: Keyword
114*c7935fa1SPatrick WilliamsSortIncludes: CaseSensitive
115b357ed5dSAdrian AmbrożewiczSortUsingDeclarations: true
116b357ed5dSAdrian AmbrożewiczSpaceAfterCStyleCast: false
117b357ed5dSAdrian AmbrożewiczSpaceAfterTemplateKeyword: true
118b357ed5dSAdrian AmbrożewiczSpaceBeforeAssignmentOperators: true
119b357ed5dSAdrian AmbrożewiczSpaceBeforeCpp11BracedList: false
120b357ed5dSAdrian AmbrożewiczSpaceBeforeCtorInitializerColon: true
121b357ed5dSAdrian AmbrożewiczSpaceBeforeInheritanceColon: true
122b357ed5dSAdrian AmbrożewiczSpaceBeforeParens: ControlStatements
123b357ed5dSAdrian AmbrożewiczSpaceBeforeRangeBasedForLoopColon: true
124b357ed5dSAdrian AmbrożewiczSpaceInEmptyParentheses: false
125b357ed5dSAdrian AmbrożewiczSpacesBeforeTrailingComments: 1
126*c7935fa1SPatrick WilliamsSpacesInAngles: Never
127b357ed5dSAdrian AmbrożewiczSpacesInContainerLiterals: true
128b357ed5dSAdrian AmbrożewiczSpacesInCStyleCastParentheses: false
129b357ed5dSAdrian AmbrożewiczSpacesInParentheses: false
130b357ed5dSAdrian AmbrożewiczSpacesInSquareBrackets: false
131b357ed5dSAdrian AmbrożewiczStandard:        Latest
132b357ed5dSAdrian AmbrożewiczTabWidth:        4
133b357ed5dSAdrian AmbrożewiczUseTab:          Never
134b357ed5dSAdrian Ambrożewicz...
13592cfff44SPatrick Williams
136