xref: /openbmc/phosphor-snmp/.clang-format (revision 717fdc44)
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
17*717fdc44SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*717fdc44SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19aaf87deeSRatan GuptaAllowShortLoopsOnASingleLine: false
20aaf87deeSRatan GuptaAlwaysBreakAfterReturnType: None
21aaf87deeSRatan GuptaAlwaysBreakBeforeMultilineStrings: false
221334b7b3SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23aaf87deeSRatan GuptaBinPackArguments: true
24aaf87deeSRatan GuptaBinPackParameters: true
25*717fdc44SPatrick WilliamsBitFieldColonSpacing: None
26aaf87deeSRatan GuptaBraceWrapping:
271334b7b3SPatrick Williams  AfterCaseLabel:  true
28aaf87deeSRatan Gupta  AfterClass:      true
29aaf87deeSRatan Gupta  AfterControlStatement: true
30aaf87deeSRatan Gupta  AfterEnum:       true
31*717fdc44SPatrick 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
39*717fdc44SPatrick Williams  BeforeLambdaBody: false
40*717fdc44SPatrick 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
61*717fdc44SPatrick WilliamsForEachMacros:
62*717fdc44SPatrick Williams  - foreach
63*717fdc44SPatrick Williams  - Q_FOREACH
64*717fdc44SPatrick 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
84*717fdc44SPatrick WilliamsIndentExternBlock: NoIndent
85edd70829SPatrick WilliamsIndentRequiresClause: true
86aaf87deeSRatan GuptaIndentWidth:     4
87aaf87deeSRatan GuptaIndentWrappedFunctionNames: true
88edd70829SPatrick WilliamsInsertNewlineAtEOF: true
89edd70829SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90edd70829SPatrick WilliamsLambdaBodyIndentation: OuterScope
91edd70829SPatrick WilliamsLineEnding: LF
92aaf87deeSRatan GuptaMacroBlockBegin: ''
93aaf87deeSRatan GuptaMacroBlockEnd:   ''
94aaf87deeSRatan GuptaMaxEmptyLinesToKeep: 1
95aaf87deeSRatan GuptaNamespaceIndentation: None
96aaf87deeSRatan GuptaObjCBlockIndentWidth: 2
97aaf87deeSRatan GuptaObjCSpaceAfterProperty: false
98aaf87deeSRatan GuptaObjCSpaceBeforeProtocolList: true
99*717fdc44SPatrick WilliamsPackConstructorInitializers: BinPack
100edd70829SPatrick WilliamsPenaltyBreakAssignment: 25
101aaf87deeSRatan GuptaPenaltyBreakBeforeFirstCallParameter: 19
102aaf87deeSRatan GuptaPenaltyBreakComment: 300
103aaf87deeSRatan GuptaPenaltyBreakFirstLessLess: 120
104aaf87deeSRatan GuptaPenaltyBreakString: 1000
105aaf87deeSRatan GuptaPenaltyExcessCharacter: 1000000
106aaf87deeSRatan GuptaPenaltyReturnTypeOnItsOwnLine: 60
107edd70829SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*717fdc44SPatrick WilliamsPointerAlignment: Left
109edd70829SPatrick WilliamsQualifierAlignment: Left
110edd70829SPatrick WilliamsReferenceAlignment: Left
111aaf87deeSRatan GuptaReflowComments:  true
112edd70829SPatrick WilliamsRequiresClausePosition: OwnLine
113edd70829SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*717fdc44SPatrick WilliamsSortIncludes: CaseSensitive
1151334b7b3SPatrick WilliamsSortUsingDeclarations: true
116aaf87deeSRatan GuptaSpaceAfterCStyleCast: false
1171334b7b3SPatrick WilliamsSpaceAfterTemplateKeyword: true
118aaf87deeSRatan GuptaSpaceBeforeAssignmentOperators: true
1191334b7b3SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1201334b7b3SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1211334b7b3SPatrick WilliamsSpaceBeforeInheritanceColon: true
122aaf87deeSRatan GuptaSpaceBeforeParens: ControlStatements
1231334b7b3SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
124aaf87deeSRatan GuptaSpaceInEmptyParentheses: false
125aaf87deeSRatan GuptaSpacesBeforeTrailingComments: 1
126*717fdc44SPatrick WilliamsSpacesInAngles: Never
127aaf87deeSRatan GuptaSpacesInContainerLiterals: true
128aaf87deeSRatan GuptaSpacesInCStyleCastParentheses: false
129aaf87deeSRatan GuptaSpacesInParentheses: false
130aaf87deeSRatan GuptaSpacesInSquareBrackets: false
1311334b7b3SPatrick WilliamsStandard:        Latest
132aaf87deeSRatan GuptaTabWidth:        4
133aaf87deeSRatan GuptaUseTab:          Never
134aaf87deeSRatan Gupta...
135edd70829SPatrick Williams
136