xref: /openbmc/phosphor-snmp/.clang-format (revision 9fa30b98)
1aaf87deeSRatan Gupta---
2aaf87deeSRatan GuptaLanguage:        Cpp
3aaf87deeSRatan Gupta# BasedOnStyle:  LLVM
4aaf87deeSRatan GuptaAccessModifierOffset: -2
5aaf87deeSRatan GuptaAlignAfterOpenBracket: Align
6aaf87deeSRatan GuptaAlignConsecutiveAssignments: false
7aaf87deeSRatan GuptaAlignConsecutiveDeclarations: false
81334b7b3SPatrick WilliamsAlignEscapedNewlines: Right
9edd70829SPatrick WilliamsAlignOperands:  Align
10edd70829SPatrick WilliamsAlignTrailingComments:
11edd70829SPatrick Williams  Kind: Always
12edd70829SPatrick Williams  OverEmptyLines: 1
13aaf87deeSRatan GuptaAllowAllParametersOfDeclarationOnNextLine: true
14edd70829SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15aaf87deeSRatan GuptaAllowShortCaseLabelsOnASingleLine: false
16edd70829SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17717fdc44SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18717fdc44SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19aaf87deeSRatan GuptaAllowShortLoopsOnASingleLine: false
20aaf87deeSRatan GuptaAlwaysBreakAfterReturnType: None
21aaf87deeSRatan GuptaAlwaysBreakBeforeMultilineStrings: false
221334b7b3SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23aaf87deeSRatan GuptaBinPackArguments: true
24aaf87deeSRatan GuptaBinPackParameters: true
25717fdc44SPatrick WilliamsBitFieldColonSpacing: None
26aaf87deeSRatan GuptaBraceWrapping:
271334b7b3SPatrick Williams  AfterCaseLabel:  true
28aaf87deeSRatan Gupta  AfterClass:      true
29aaf87deeSRatan Gupta  AfterControlStatement: true
30aaf87deeSRatan Gupta  AfterEnum:       true
31717fdc44SPatrick Williams  AfterExternBlock: true
32aaf87deeSRatan Gupta  AfterFunction:   true
33aaf87deeSRatan Gupta  AfterNamespace:  true
34aaf87deeSRatan Gupta  AfterObjCDeclaration: true
35aaf87deeSRatan Gupta  AfterStruct:     true
36aaf87deeSRatan Gupta  AfterUnion:      true
37aaf87deeSRatan Gupta  BeforeCatch:     true
38aaf87deeSRatan Gupta  BeforeElse:      true
39717fdc44SPatrick Williams  BeforeLambdaBody: false
40717fdc44SPatrick Williams  BeforeWhile:     false
41aaf87deeSRatan Gupta  IndentBraces:    false
421334b7b3SPatrick Williams  SplitEmptyFunction:   false
431334b7b3SPatrick Williams  SplitEmptyRecord:     false
441334b7b3SPatrick Williams  SplitEmptyNamespace:  false
45edd70829SPatrick WilliamsBreakAfterAttributes: Never
46aaf87deeSRatan GuptaBreakBeforeBinaryOperators: None
47aaf87deeSRatan GuptaBreakBeforeBraces: Custom
48aaf87deeSRatan GuptaBreakBeforeTernaryOperators: true
49aaf87deeSRatan GuptaBreakConstructorInitializers: AfterColon
501334b7b3SPatrick WilliamsBreakInheritanceList: AfterColon
51f87999d1SGeorge LiuBreakStringLiterals: false
52aaf87deeSRatan GuptaColumnLimit:     80
53aaf87deeSRatan GuptaCommentPragmas:  '^ IWYU pragma:'
541334b7b3SPatrick WilliamsCompactNamespaces: false
55aaf87deeSRatan GuptaConstructorInitializerIndentWidth: 4
56aaf87deeSRatan GuptaContinuationIndentWidth: 4
57aaf87deeSRatan GuptaCpp11BracedListStyle: true
581334b7b3SPatrick WilliamsDerivePointerAlignment: false
59aaf87deeSRatan GuptaDisableFormat:   false
60aaf87deeSRatan GuptaFixNamespaceComments: true
61717fdc44SPatrick WilliamsForEachMacros:
62717fdc44SPatrick Williams  - foreach
63717fdc44SPatrick Williams  - Q_FOREACH
64717fdc44SPatrick Williams  - BOOST_FOREACH
651334b7b3SPatrick WilliamsIncludeBlocks: Regroup
661334b7b3SPatrick WilliamsIncludeCategories:
671334b7b3SPatrick Williams  - Regex:           '^[<"](gtest|gmock)'
681334b7b3SPatrick Williams    Priority:        7
691334b7b3SPatrick Williams  - Regex:           '^"config.h"'
701334b7b3SPatrick Williams    Priority:        -1
711334b7b3SPatrick Williams  - Regex:           '^".*\.h"'
721334b7b3SPatrick Williams    Priority:        1
731334b7b3SPatrick Williams  - Regex:           '^".*\.hpp"'
741334b7b3SPatrick Williams    Priority:        2
751334b7b3SPatrick Williams  - Regex:           '^<.*\.h>'
761334b7b3SPatrick Williams    Priority:        3
771334b7b3SPatrick Williams  - Regex:           '^<.*\.hpp>'
781334b7b3SPatrick Williams    Priority:        4
791334b7b3SPatrick Williams  - Regex:           '^<.*'
801334b7b3SPatrick Williams    Priority:        5
811334b7b3SPatrick Williams  - Regex:           '.*'
821334b7b3SPatrick Williams    Priority:        6
83aaf87deeSRatan GuptaIndentCaseLabels: true
84717fdc44SPatrick WilliamsIndentExternBlock: NoIndent
85edd70829SPatrick WilliamsIndentRequiresClause: true
86aaf87deeSRatan GuptaIndentWidth:     4
87aaf87deeSRatan GuptaIndentWrappedFunctionNames: true
88edd70829SPatrick WilliamsInsertNewlineAtEOF: true
89edd70829SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*9fa30b98SPatrick WilliamsLambdaBodyIndentation: Signature
91edd70829SPatrick WilliamsLineEnding: LF
92aaf87deeSRatan GuptaMacroBlockBegin: ''
93aaf87deeSRatan GuptaMacroBlockEnd:   ''
94aaf87deeSRatan GuptaMaxEmptyLinesToKeep: 1
95aaf87deeSRatan GuptaNamespaceIndentation: None
96aaf87deeSRatan GuptaObjCBlockIndentWidth: 2
97aaf87deeSRatan GuptaObjCSpaceAfterProperty: false
98aaf87deeSRatan GuptaObjCSpaceBeforeProtocolList: true
99717fdc44SPatrick WilliamsPackConstructorInitializers: BinPack
100edd70829SPatrick WilliamsPenaltyBreakAssignment: 25
101*9fa30b98SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102aaf87deeSRatan GuptaPenaltyBreakComment: 300
103aaf87deeSRatan GuptaPenaltyBreakFirstLessLess: 120
104aaf87deeSRatan GuptaPenaltyBreakString: 1000
105*9fa30b98SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106aaf87deeSRatan GuptaPenaltyExcessCharacter: 1000000
107aaf87deeSRatan GuptaPenaltyReturnTypeOnItsOwnLine: 60
108*9fa30b98SPatrick WilliamsPenaltyIndentedWhitespace: 1
109717fdc44SPatrick WilliamsPointerAlignment: Left
110edd70829SPatrick WilliamsQualifierAlignment: Left
111edd70829SPatrick WilliamsReferenceAlignment: Left
112aaf87deeSRatan GuptaReflowComments:  true
113edd70829SPatrick WilliamsRequiresClausePosition: OwnLine
114edd70829SPatrick WilliamsRequiresExpressionIndentation: Keyword
115717fdc44SPatrick WilliamsSortIncludes: CaseSensitive
1161334b7b3SPatrick WilliamsSortUsingDeclarations: true
117aaf87deeSRatan GuptaSpaceAfterCStyleCast: false
1181334b7b3SPatrick WilliamsSpaceAfterTemplateKeyword: true
119aaf87deeSRatan GuptaSpaceBeforeAssignmentOperators: true
1201334b7b3SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1211334b7b3SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1221334b7b3SPatrick WilliamsSpaceBeforeInheritanceColon: true
123aaf87deeSRatan GuptaSpaceBeforeParens: ControlStatements
1241334b7b3SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
125aaf87deeSRatan GuptaSpaceInEmptyParentheses: false
126aaf87deeSRatan GuptaSpacesBeforeTrailingComments: 1
127717fdc44SPatrick WilliamsSpacesInAngles: Never
128aaf87deeSRatan GuptaSpacesInContainerLiterals: true
129aaf87deeSRatan GuptaSpacesInCStyleCastParentheses: false
130aaf87deeSRatan GuptaSpacesInParentheses: false
131aaf87deeSRatan GuptaSpacesInSquareBrackets: false
1321334b7b3SPatrick WilliamsStandard:        Latest
133aaf87deeSRatan GuptaTabWidth:        4
134aaf87deeSRatan GuptaUseTab:          Never
135aaf87deeSRatan Gupta...
136edd70829SPatrick Williams
137