xref: /openbmc/google-misc/.clang-format (revision c66ebc35)
1ab79d7d9SWilliam A. Kennington III---
2ab79d7d9SWilliam A. Kennington IIILanguage:        Cpp
3ab79d7d9SWilliam A. Kennington III# BasedOnStyle:  LLVM
4ab79d7d9SWilliam A. Kennington IIIAccessModifierOffset: -2
5ab79d7d9SWilliam A. Kennington IIIAlignAfterOpenBracket: Align
6ab79d7d9SWilliam A. Kennington IIIAlignConsecutiveAssignments: false
7ab79d7d9SWilliam A. Kennington IIIAlignConsecutiveDeclarations: false
8ab79d7d9SWilliam A. Kennington IIIAlignEscapedNewlines: Right
92be45238SPatrick WilliamsAlignOperands:  Align
102be45238SPatrick WilliamsAlignTrailingComments:
112be45238SPatrick Williams  Kind: Always
122be45238SPatrick Williams  OverEmptyLines: 1
13ab79d7d9SWilliam A. Kennington IIIAllowAllParametersOfDeclarationOnNextLine: true
142be45238SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15ab79d7d9SWilliam A. Kennington IIIAllowShortCaseLabelsOnASingleLine: false
162be45238SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
176084957fSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
186084957fSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19ab79d7d9SWilliam A. Kennington IIIAllowShortLoopsOnASingleLine: false
20ab79d7d9SWilliam A. Kennington IIIAlwaysBreakAfterReturnType: None
21ab79d7d9SWilliam A. Kennington IIIAlwaysBreakBeforeMultilineStrings: false
22ab79d7d9SWilliam A. Kennington IIIAlwaysBreakTemplateDeclarations: Yes
23ab79d7d9SWilliam A. Kennington IIIBinPackArguments: true
24ab79d7d9SWilliam A. Kennington IIIBinPackParameters: true
256084957fSPatrick WilliamsBitFieldColonSpacing: None
26ab79d7d9SWilliam A. Kennington IIIBraceWrapping:
27ab79d7d9SWilliam A. Kennington III  AfterCaseLabel:  true
28ab79d7d9SWilliam A. Kennington III  AfterClass:      true
29ab79d7d9SWilliam A. Kennington III  AfterControlStatement: true
30ab79d7d9SWilliam A. Kennington III  AfterEnum:       true
316084957fSPatrick Williams  AfterExternBlock: true
32ab79d7d9SWilliam A. Kennington III  AfterFunction:   true
33ab79d7d9SWilliam A. Kennington III  AfterNamespace:  true
34ab79d7d9SWilliam A. Kennington III  AfterObjCDeclaration: true
35ab79d7d9SWilliam A. Kennington III  AfterStruct:     true
36ab79d7d9SWilliam A. Kennington III  AfterUnion:      true
37ab79d7d9SWilliam A. Kennington III  BeforeCatch:     true
38ab79d7d9SWilliam A. Kennington III  BeforeElse:      true
396084957fSPatrick Williams  BeforeLambdaBody: false
406084957fSPatrick Williams  BeforeWhile:     false
41ab79d7d9SWilliam A. Kennington III  IndentBraces:    false
42ab79d7d9SWilliam A. Kennington III  SplitEmptyFunction:   false
43ab79d7d9SWilliam A. Kennington III  SplitEmptyRecord:     false
44ab79d7d9SWilliam A. Kennington III  SplitEmptyNamespace:  false
452be45238SPatrick WilliamsBreakAfterAttributes: Never
46ab79d7d9SWilliam A. Kennington IIIBreakBeforeBinaryOperators: None
47ab79d7d9SWilliam A. Kennington IIIBreakBeforeBraces: Custom
48ab79d7d9SWilliam A. Kennington IIIBreakBeforeTernaryOperators: true
49ab79d7d9SWilliam A. Kennington IIIBreakConstructorInitializers: AfterColon
50ab79d7d9SWilliam A. Kennington IIIBreakInheritanceList: AfterColon
512be45238SPatrick WilliamsBreakStringLiterals: false
52ab79d7d9SWilliam A. Kennington IIIColumnLimit:     80
53ab79d7d9SWilliam A. Kennington IIICommentPragmas:  '^ IWYU pragma:'
54ab79d7d9SWilliam A. Kennington IIICompactNamespaces: false
55ab79d7d9SWilliam A. Kennington IIIConstructorInitializerIndentWidth: 4
56ab79d7d9SWilliam A. Kennington IIIContinuationIndentWidth: 4
57ab79d7d9SWilliam A. Kennington IIICpp11BracedListStyle: true
58ab79d7d9SWilliam A. Kennington IIIDerivePointerAlignment: false
59ab79d7d9SWilliam A. Kennington IIIDisableFormat:   false
60ab79d7d9SWilliam A. Kennington IIIFixNamespaceComments: true
616084957fSPatrick WilliamsForEachMacros:
626084957fSPatrick Williams  - foreach
636084957fSPatrick Williams  - Q_FOREACH
646084957fSPatrick Williams  - BOOST_FOREACH
65ab79d7d9SWilliam A. Kennington IIIIncludeBlocks: Regroup
66ab79d7d9SWilliam A. Kennington IIIIncludeCategories:
67ab79d7d9SWilliam A. Kennington III  - Regex:           '^[<"](gtest|gmock)'
68ab79d7d9SWilliam A. Kennington III    Priority:        7
69ab79d7d9SWilliam A. Kennington III  - Regex:           '^"config.h"'
70ab79d7d9SWilliam A. Kennington III    Priority:        -1
71ab79d7d9SWilliam A. Kennington III  - Regex:           '^".*\.h"'
72ab79d7d9SWilliam A. Kennington III    Priority:        1
73ab79d7d9SWilliam A. Kennington III  - Regex:           '^".*\.hpp"'
74ab79d7d9SWilliam A. Kennington III    Priority:        2
75ab79d7d9SWilliam A. Kennington III  - Regex:           '^<.*\.h>'
76ab79d7d9SWilliam A. Kennington III    Priority:        3
77ab79d7d9SWilliam A. Kennington III  - Regex:           '^<.*\.hpp>'
78ab79d7d9SWilliam A. Kennington III    Priority:        4
79ab79d7d9SWilliam A. Kennington III  - Regex:           '^<.*'
80ab79d7d9SWilliam A. Kennington III    Priority:        5
81ab79d7d9SWilliam A. Kennington III  - Regex:           '.*'
82ab79d7d9SWilliam A. Kennington III    Priority:        6
83ab79d7d9SWilliam A. Kennington IIIIndentCaseLabels: true
846084957fSPatrick WilliamsIndentExternBlock: NoIndent
852be45238SPatrick WilliamsIndentRequiresClause: true
86ab79d7d9SWilliam A. Kennington IIIIndentWidth:     4
87ab79d7d9SWilliam A. Kennington IIIIndentWrappedFunctionNames: true
882be45238SPatrick WilliamsInsertNewlineAtEOF: true
892be45238SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*c66ebc35SPatrick WilliamsLambdaBodyIndentation: Signature
912be45238SPatrick WilliamsLineEnding: LF
92ab79d7d9SWilliam A. Kennington IIIMacroBlockBegin: ''
93ab79d7d9SWilliam A. Kennington IIIMacroBlockEnd:   ''
94ab79d7d9SWilliam A. Kennington IIIMaxEmptyLinesToKeep: 1
95ab79d7d9SWilliam A. Kennington IIINamespaceIndentation: None
96ab79d7d9SWilliam A. Kennington IIIObjCBlockIndentWidth: 2
97ab79d7d9SWilliam A. Kennington IIIObjCSpaceAfterProperty: false
98ab79d7d9SWilliam A. Kennington IIIObjCSpaceBeforeProtocolList: true
996084957fSPatrick WilliamsPackConstructorInitializers: BinPack
1002be45238SPatrick WilliamsPenaltyBreakAssignment: 25
101*c66ebc35SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102ab79d7d9SWilliam A. Kennington IIIPenaltyBreakComment: 300
103ab79d7d9SWilliam A. Kennington IIIPenaltyBreakFirstLessLess: 120
104ab79d7d9SWilliam A. Kennington IIIPenaltyBreakString: 1000
105*c66ebc35SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106ab79d7d9SWilliam A. Kennington IIIPenaltyExcessCharacter: 1000000
107ab79d7d9SWilliam A. Kennington IIIPenaltyReturnTypeOnItsOwnLine: 60
108*c66ebc35SPatrick WilliamsPenaltyIndentedWhitespace: 1
1096084957fSPatrick WilliamsPointerAlignment: Left
1102be45238SPatrick WilliamsQualifierAlignment: Left
1112be45238SPatrick WilliamsReferenceAlignment: Left
112ab79d7d9SWilliam A. Kennington IIIReflowComments:  true
1132be45238SPatrick WilliamsRequiresClausePosition: OwnLine
1142be45238SPatrick WilliamsRequiresExpressionIndentation: Keyword
1156084957fSPatrick WilliamsSortIncludes: CaseSensitive
116ab79d7d9SWilliam A. Kennington IIISortUsingDeclarations: true
117ab79d7d9SWilliam A. Kennington IIISpaceAfterCStyleCast: false
118ab79d7d9SWilliam A. Kennington IIISpaceAfterTemplateKeyword: true
119ab79d7d9SWilliam A. Kennington IIISpaceBeforeAssignmentOperators: true
120ab79d7d9SWilliam A. Kennington IIISpaceBeforeCpp11BracedList: false
121ab79d7d9SWilliam A. Kennington IIISpaceBeforeCtorInitializerColon: true
122ab79d7d9SWilliam A. Kennington IIISpaceBeforeInheritanceColon: true
123ab79d7d9SWilliam A. Kennington IIISpaceBeforeParens: ControlStatements
124ab79d7d9SWilliam A. Kennington IIISpaceBeforeRangeBasedForLoopColon: true
125ab79d7d9SWilliam A. Kennington IIISpaceInEmptyParentheses: false
126ab79d7d9SWilliam A. Kennington IIISpacesBeforeTrailingComments: 1
1276084957fSPatrick WilliamsSpacesInAngles: Never
128ab79d7d9SWilliam A. Kennington IIISpacesInContainerLiterals: true
129ab79d7d9SWilliam A. Kennington IIISpacesInCStyleCastParentheses: false
130ab79d7d9SWilliam A. Kennington IIISpacesInParentheses: false
131ab79d7d9SWilliam A. Kennington IIISpacesInSquareBrackets: false
132ab79d7d9SWilliam A. Kennington IIIStandard:        Latest
133ab79d7d9SWilliam A. Kennington IIITabWidth:        4
134ab79d7d9SWilliam A. Kennington IIIUseTab:          Never
135ab79d7d9SWilliam A. Kennington III...
136ab79d7d9SWilliam A. Kennington III
137