xref: /openbmc/phosphor-snmp/.clang-format (revision edd70829)
1aaf87deeSRatan Gupta---
2aaf87deeSRatan GuptaLanguage:        Cpp
3aaf87deeSRatan Gupta# BasedOnStyle:  LLVM
4aaf87deeSRatan GuptaAccessModifierOffset: -2
5aaf87deeSRatan GuptaAlignAfterOpenBracket: Align
6aaf87deeSRatan GuptaAlignConsecutiveAssignments: false
7aaf87deeSRatan GuptaAlignConsecutiveDeclarations: false
81334b7b3SPatrick WilliamsAlignEscapedNewlines: Right
9*edd70829SPatrick WilliamsAlignOperands:  Align
10*edd70829SPatrick WilliamsAlignTrailingComments:
11*edd70829SPatrick Williams  Kind: Always
12*edd70829SPatrick Williams  OverEmptyLines: 1
13aaf87deeSRatan GuptaAllowAllParametersOfDeclarationOnNextLine: true
14*edd70829SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15aaf87deeSRatan GuptaAllowShortCaseLabelsOnASingleLine: false
16*edd70829SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17aaf87deeSRatan GuptaAllowShortIfStatementsOnASingleLine: false
18aaf87deeSRatan GuptaAllowShortLoopsOnASingleLine: false
19aaf87deeSRatan GuptaAlwaysBreakAfterReturnType: None
20aaf87deeSRatan GuptaAlwaysBreakBeforeMultilineStrings: false
211334b7b3SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
22aaf87deeSRatan GuptaBinPackArguments: true
23aaf87deeSRatan GuptaBinPackParameters: true
24aaf87deeSRatan GuptaBraceWrapping:
251334b7b3SPatrick Williams  AfterCaseLabel:  true
26aaf87deeSRatan Gupta  AfterClass:      true
27aaf87deeSRatan Gupta  AfterControlStatement: true
28aaf87deeSRatan Gupta  AfterEnum:       true
29aaf87deeSRatan Gupta  AfterFunction:   true
30aaf87deeSRatan Gupta  AfterNamespace:  true
31aaf87deeSRatan Gupta  AfterObjCDeclaration: true
32aaf87deeSRatan Gupta  AfterStruct:     true
33aaf87deeSRatan Gupta  AfterUnion:      true
341334b7b3SPatrick Williams  AfterExternBlock: true
35aaf87deeSRatan Gupta  BeforeCatch:     true
36aaf87deeSRatan Gupta  BeforeElse:      true
37aaf87deeSRatan Gupta  IndentBraces:    false
381334b7b3SPatrick Williams  SplitEmptyFunction:   false
391334b7b3SPatrick Williams  SplitEmptyRecord:     false
401334b7b3SPatrick Williams  SplitEmptyNamespace:  false
41*edd70829SPatrick WilliamsBreakAfterAttributes: Never
42aaf87deeSRatan GuptaBreakBeforeBinaryOperators: None
43aaf87deeSRatan GuptaBreakBeforeBraces: Custom
44aaf87deeSRatan GuptaBreakBeforeTernaryOperators: true
45aaf87deeSRatan GuptaBreakConstructorInitializers: AfterColon
461334b7b3SPatrick WilliamsBreakInheritanceList: AfterColon
47f87999d1SGeorge LiuBreakStringLiterals: false
48aaf87deeSRatan GuptaColumnLimit:     80
49aaf87deeSRatan GuptaCommentPragmas:  '^ IWYU pragma:'
501334b7b3SPatrick WilliamsCompactNamespaces: false
51aaf87deeSRatan GuptaConstructorInitializerAllOnOneLineOrOnePerLine: false
52aaf87deeSRatan GuptaConstructorInitializerIndentWidth: 4
53aaf87deeSRatan GuptaContinuationIndentWidth: 4
54aaf87deeSRatan GuptaCpp11BracedListStyle: true
55f87999d1SGeorge LiuDeriveLineEnding: false
561334b7b3SPatrick WilliamsDerivePointerAlignment: false
57aaf87deeSRatan GuptaPointerAlignment: Left
58aaf87deeSRatan GuptaDisableFormat:   false
59aaf87deeSRatan GuptaExperimentalAutoDetectBinPacking: false
60aaf87deeSRatan GuptaFixNamespaceComments: true
61aaf87deeSRatan GuptaForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
621334b7b3SPatrick WilliamsIncludeBlocks: Regroup
631334b7b3SPatrick WilliamsIncludeCategories:
641334b7b3SPatrick Williams  - Regex:           '^[<"](gtest|gmock)'
651334b7b3SPatrick Williams    Priority:        7
661334b7b3SPatrick Williams  - Regex:           '^"config.h"'
671334b7b3SPatrick Williams    Priority:        -1
681334b7b3SPatrick Williams  - Regex:           '^".*\.h"'
691334b7b3SPatrick Williams    Priority:        1
701334b7b3SPatrick Williams  - Regex:           '^".*\.hpp"'
711334b7b3SPatrick Williams    Priority:        2
721334b7b3SPatrick Williams  - Regex:           '^<.*\.h>'
731334b7b3SPatrick Williams    Priority:        3
741334b7b3SPatrick Williams  - Regex:           '^<.*\.hpp>'
751334b7b3SPatrick Williams    Priority:        4
761334b7b3SPatrick Williams  - Regex:           '^<.*'
771334b7b3SPatrick Williams    Priority:        5
781334b7b3SPatrick Williams  - Regex:           '.*'
791334b7b3SPatrick Williams    Priority:        6
80aaf87deeSRatan GuptaIndentCaseLabels: true
81*edd70829SPatrick WilliamsIndentRequiresClause: true
82aaf87deeSRatan GuptaIndentWidth:     4
83aaf87deeSRatan GuptaIndentWrappedFunctionNames: true
84*edd70829SPatrick WilliamsInsertNewlineAtEOF: true
85*edd70829SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*edd70829SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*edd70829SPatrick WilliamsLineEnding: LF
88aaf87deeSRatan GuptaMacroBlockBegin: ''
89aaf87deeSRatan GuptaMacroBlockEnd:   ''
90aaf87deeSRatan GuptaMaxEmptyLinesToKeep: 1
91aaf87deeSRatan GuptaNamespaceIndentation: None
92aaf87deeSRatan GuptaObjCBlockIndentWidth: 2
93aaf87deeSRatan GuptaObjCSpaceAfterProperty: false
94aaf87deeSRatan GuptaObjCSpaceBeforeProtocolList: true
95*edd70829SPatrick WilliamsPenaltyBreakAssignment: 25
96aaf87deeSRatan GuptaPenaltyBreakBeforeFirstCallParameter: 19
97aaf87deeSRatan GuptaPenaltyBreakComment: 300
98aaf87deeSRatan GuptaPenaltyBreakFirstLessLess: 120
99aaf87deeSRatan GuptaPenaltyBreakString: 1000
100aaf87deeSRatan GuptaPenaltyExcessCharacter: 1000000
101aaf87deeSRatan GuptaPenaltyReturnTypeOnItsOwnLine: 60
102*edd70829SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*edd70829SPatrick WilliamsQualifierAlignment: Left
104*edd70829SPatrick WilliamsReferenceAlignment: Left
105aaf87deeSRatan GuptaReflowComments:  true
106*edd70829SPatrick WilliamsRequiresClausePosition: OwnLine
107*edd70829SPatrick WilliamsRequiresExpressionIndentation: Keyword
1081334b7b3SPatrick WilliamsSortIncludes:    true
1091334b7b3SPatrick WilliamsSortUsingDeclarations: true
110aaf87deeSRatan GuptaSpaceAfterCStyleCast: false
1111334b7b3SPatrick WilliamsSpaceAfterTemplateKeyword: true
112aaf87deeSRatan GuptaSpaceBeforeAssignmentOperators: true
1131334b7b3SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1141334b7b3SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1151334b7b3SPatrick WilliamsSpaceBeforeInheritanceColon: true
116aaf87deeSRatan GuptaSpaceBeforeParens: ControlStatements
1171334b7b3SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
118aaf87deeSRatan GuptaSpaceInEmptyParentheses: false
119aaf87deeSRatan GuptaSpacesBeforeTrailingComments: 1
120aaf87deeSRatan GuptaSpacesInAngles:  false
121aaf87deeSRatan GuptaSpacesInContainerLiterals: true
122aaf87deeSRatan GuptaSpacesInCStyleCastParentheses: false
123aaf87deeSRatan GuptaSpacesInParentheses: false
124aaf87deeSRatan GuptaSpacesInSquareBrackets: false
1251334b7b3SPatrick WilliamsStandard:        Latest
126aaf87deeSRatan GuptaTabWidth:        4
127aaf87deeSRatan GuptaUseTab:          Never
128aaf87deeSRatan Gupta...
129*edd70829SPatrick Williams
130