xref: /openbmc/phosphor-snmp/.clang-format (revision 1334b7b3)
1aaf87deeSRatan Gupta---
2aaf87deeSRatan GuptaLanguage:        Cpp
3aaf87deeSRatan Gupta# BasedOnStyle:  LLVM
4aaf87deeSRatan GuptaAccessModifierOffset: -2
5aaf87deeSRatan GuptaAlignAfterOpenBracket: Align
6aaf87deeSRatan GuptaAlignConsecutiveAssignments: false
7aaf87deeSRatan GuptaAlignConsecutiveDeclarations: false
8*1334b7b3SPatrick WilliamsAlignEscapedNewlines: Right
9aaf87deeSRatan GuptaAlignOperands:   true
10aaf87deeSRatan GuptaAlignTrailingComments: true
11aaf87deeSRatan GuptaAllowAllParametersOfDeclarationOnNextLine: true
12aaf87deeSRatan GuptaAllowShortBlocksOnASingleLine: false
13aaf87deeSRatan GuptaAllowShortCaseLabelsOnASingleLine: false
14aaf87deeSRatan GuptaAllowShortFunctionsOnASingleLine: None
15aaf87deeSRatan GuptaAllowShortIfStatementsOnASingleLine: false
16aaf87deeSRatan GuptaAllowShortLoopsOnASingleLine: false
17aaf87deeSRatan GuptaAlwaysBreakAfterReturnType: None
18aaf87deeSRatan GuptaAlwaysBreakBeforeMultilineStrings: false
19*1334b7b3SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
20aaf87deeSRatan GuptaBinPackArguments: true
21aaf87deeSRatan GuptaBinPackParameters: true
22aaf87deeSRatan GuptaBraceWrapping:
23*1334b7b3SPatrick Williams  AfterCaseLabel:  true
24aaf87deeSRatan Gupta  AfterClass:      true
25aaf87deeSRatan Gupta  AfterControlStatement: true
26aaf87deeSRatan Gupta  AfterEnum:       true
27aaf87deeSRatan Gupta  AfterFunction:   true
28aaf87deeSRatan Gupta  AfterNamespace:  true
29aaf87deeSRatan Gupta  AfterObjCDeclaration: true
30aaf87deeSRatan Gupta  AfterStruct:     true
31aaf87deeSRatan Gupta  AfterUnion:      true
32*1334b7b3SPatrick Williams  AfterExternBlock: true
33aaf87deeSRatan Gupta  BeforeCatch:     true
34aaf87deeSRatan Gupta  BeforeElse:      true
35aaf87deeSRatan Gupta  IndentBraces:    false
36*1334b7b3SPatrick Williams  SplitEmptyFunction:   false
37*1334b7b3SPatrick Williams  SplitEmptyRecord:     false
38*1334b7b3SPatrick Williams  SplitEmptyNamespace:  false
39aaf87deeSRatan GuptaBreakBeforeBinaryOperators: None
40aaf87deeSRatan GuptaBreakBeforeBraces: Custom
41aaf87deeSRatan GuptaBreakBeforeTernaryOperators: true
42aaf87deeSRatan GuptaBreakConstructorInitializers: AfterColon
43*1334b7b3SPatrick WilliamsBreakInheritanceList: AfterColon
44*1334b7b3SPatrick WilliamsBreakStringLiterals: true
45aaf87deeSRatan GuptaColumnLimit:     80
46aaf87deeSRatan GuptaCommentPragmas:  '^ IWYU pragma:'
47*1334b7b3SPatrick WilliamsCompactNamespaces: false
48aaf87deeSRatan GuptaConstructorInitializerAllOnOneLineOrOnePerLine: false
49aaf87deeSRatan GuptaConstructorInitializerIndentWidth: 4
50aaf87deeSRatan GuptaContinuationIndentWidth: 4
51aaf87deeSRatan GuptaCpp11BracedListStyle: true
52*1334b7b3SPatrick WilliamsDerivePointerAlignment: false
53aaf87deeSRatan GuptaPointerAlignment: Left
54aaf87deeSRatan GuptaDisableFormat:   false
55aaf87deeSRatan GuptaExperimentalAutoDetectBinPacking: false
56aaf87deeSRatan GuptaFixNamespaceComments: true
57aaf87deeSRatan GuptaForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
58*1334b7b3SPatrick WilliamsIncludeBlocks: Regroup
59*1334b7b3SPatrick WilliamsIncludeCategories:
60*1334b7b3SPatrick Williams  - Regex:           '^[<"](gtest|gmock)'
61*1334b7b3SPatrick Williams    Priority:        7
62*1334b7b3SPatrick Williams  - Regex:           '^"config.h"'
63*1334b7b3SPatrick Williams    Priority:        -1
64*1334b7b3SPatrick Williams  - Regex:           '^".*\.h"'
65*1334b7b3SPatrick Williams    Priority:        1
66*1334b7b3SPatrick Williams  - Regex:           '^".*\.hpp"'
67*1334b7b3SPatrick Williams    Priority:        2
68*1334b7b3SPatrick Williams  - Regex:           '^<.*\.h>'
69*1334b7b3SPatrick Williams    Priority:        3
70*1334b7b3SPatrick Williams  - Regex:           '^<.*\.hpp>'
71*1334b7b3SPatrick Williams    Priority:        4
72*1334b7b3SPatrick Williams  - Regex:           '^<.*'
73*1334b7b3SPatrick Williams    Priority:        5
74*1334b7b3SPatrick Williams  - Regex:           '.*'
75*1334b7b3SPatrick Williams    Priority:        6
76aaf87deeSRatan GuptaIndentCaseLabels: true
77aaf87deeSRatan GuptaIndentWidth:     4
78aaf87deeSRatan GuptaIndentWrappedFunctionNames: true
79aaf87deeSRatan GuptaKeepEmptyLinesAtTheStartOfBlocks: true
80aaf87deeSRatan GuptaMacroBlockBegin: ''
81aaf87deeSRatan GuptaMacroBlockEnd:   ''
82aaf87deeSRatan GuptaMaxEmptyLinesToKeep: 1
83aaf87deeSRatan GuptaNamespaceIndentation: None
84aaf87deeSRatan GuptaObjCBlockIndentWidth: 2
85aaf87deeSRatan GuptaObjCSpaceAfterProperty: false
86aaf87deeSRatan GuptaObjCSpaceBeforeProtocolList: true
87aaf87deeSRatan GuptaPenaltyBreakBeforeFirstCallParameter: 19
88aaf87deeSRatan GuptaPenaltyBreakComment: 300
89aaf87deeSRatan GuptaPenaltyBreakFirstLessLess: 120
90aaf87deeSRatan GuptaPenaltyBreakString: 1000
91aaf87deeSRatan GuptaPenaltyExcessCharacter: 1000000
92aaf87deeSRatan GuptaPenaltyReturnTypeOnItsOwnLine: 60
93aaf87deeSRatan GuptaReflowComments:  true
94*1334b7b3SPatrick WilliamsSortIncludes:    true
95*1334b7b3SPatrick WilliamsSortUsingDeclarations: true
96aaf87deeSRatan GuptaSpaceAfterCStyleCast: false
97*1334b7b3SPatrick WilliamsSpaceAfterTemplateKeyword: true
98aaf87deeSRatan GuptaSpaceBeforeAssignmentOperators: true
99*1334b7b3SPatrick WilliamsSpaceBeforeCpp11BracedList: false
100*1334b7b3SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
101*1334b7b3SPatrick WilliamsSpaceBeforeInheritanceColon: true
102aaf87deeSRatan GuptaSpaceBeforeParens: ControlStatements
103*1334b7b3SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
104aaf87deeSRatan GuptaSpaceInEmptyParentheses: false
105aaf87deeSRatan GuptaSpacesBeforeTrailingComments: 1
106aaf87deeSRatan GuptaSpacesInAngles:  false
107aaf87deeSRatan GuptaSpacesInContainerLiterals: true
108aaf87deeSRatan GuptaSpacesInCStyleCastParentheses: false
109aaf87deeSRatan GuptaSpacesInParentheses: false
110aaf87deeSRatan GuptaSpacesInSquareBrackets: false
111*1334b7b3SPatrick WilliamsStandard:        Latest
112aaf87deeSRatan GuptaTabWidth:        4
113aaf87deeSRatan GuptaUseTab:          Never
114aaf87deeSRatan Gupta...
115aaf87deeSRatan Gupta
116