xref: /openbmc/phosphor-snmp/.clang-format (revision f87999d1)
1aaf87deeSRatan Gupta---
2aaf87deeSRatan GuptaLanguage:        Cpp
3aaf87deeSRatan Gupta# BasedOnStyle:  LLVM
4aaf87deeSRatan GuptaAccessModifierOffset: -2
5aaf87deeSRatan GuptaAlignAfterOpenBracket: Align
6aaf87deeSRatan GuptaAlignConsecutiveAssignments: false
7aaf87deeSRatan GuptaAlignConsecutiveDeclarations: false
81334b7b3SPatrick 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
191334b7b3SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
20aaf87deeSRatan GuptaBinPackArguments: true
21aaf87deeSRatan GuptaBinPackParameters: true
22aaf87deeSRatan GuptaBraceWrapping:
231334b7b3SPatrick 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
321334b7b3SPatrick Williams  AfterExternBlock: true
33aaf87deeSRatan Gupta  BeforeCatch:     true
34aaf87deeSRatan Gupta  BeforeElse:      true
35aaf87deeSRatan Gupta  IndentBraces:    false
361334b7b3SPatrick Williams  SplitEmptyFunction:   false
371334b7b3SPatrick Williams  SplitEmptyRecord:     false
381334b7b3SPatrick Williams  SplitEmptyNamespace:  false
39aaf87deeSRatan GuptaBreakBeforeBinaryOperators: None
40aaf87deeSRatan GuptaBreakBeforeBraces: Custom
41aaf87deeSRatan GuptaBreakBeforeTernaryOperators: true
42aaf87deeSRatan GuptaBreakConstructorInitializers: AfterColon
431334b7b3SPatrick WilliamsBreakInheritanceList: AfterColon
44*f87999d1SGeorge LiuBreakStringLiterals: false
45aaf87deeSRatan GuptaColumnLimit:     80
46aaf87deeSRatan GuptaCommentPragmas:  '^ IWYU pragma:'
471334b7b3SPatrick WilliamsCompactNamespaces: false
48aaf87deeSRatan GuptaConstructorInitializerAllOnOneLineOrOnePerLine: false
49aaf87deeSRatan GuptaConstructorInitializerIndentWidth: 4
50aaf87deeSRatan GuptaContinuationIndentWidth: 4
51aaf87deeSRatan GuptaCpp11BracedListStyle: true
52*f87999d1SGeorge LiuDeriveLineEnding: false
531334b7b3SPatrick WilliamsDerivePointerAlignment: false
54aaf87deeSRatan GuptaPointerAlignment: Left
55aaf87deeSRatan GuptaDisableFormat:   false
56aaf87deeSRatan GuptaExperimentalAutoDetectBinPacking: false
57aaf87deeSRatan GuptaFixNamespaceComments: true
58aaf87deeSRatan GuptaForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
591334b7b3SPatrick WilliamsIncludeBlocks: Regroup
601334b7b3SPatrick WilliamsIncludeCategories:
611334b7b3SPatrick Williams  - Regex:           '^[<"](gtest|gmock)'
621334b7b3SPatrick Williams    Priority:        7
631334b7b3SPatrick Williams  - Regex:           '^"config.h"'
641334b7b3SPatrick Williams    Priority:        -1
651334b7b3SPatrick Williams  - Regex:           '^".*\.h"'
661334b7b3SPatrick Williams    Priority:        1
671334b7b3SPatrick Williams  - Regex:           '^".*\.hpp"'
681334b7b3SPatrick Williams    Priority:        2
691334b7b3SPatrick Williams  - Regex:           '^<.*\.h>'
701334b7b3SPatrick Williams    Priority:        3
711334b7b3SPatrick Williams  - Regex:           '^<.*\.hpp>'
721334b7b3SPatrick Williams    Priority:        4
731334b7b3SPatrick Williams  - Regex:           '^<.*'
741334b7b3SPatrick Williams    Priority:        5
751334b7b3SPatrick Williams  - Regex:           '.*'
761334b7b3SPatrick Williams    Priority:        6
77aaf87deeSRatan GuptaIndentCaseLabels: true
78aaf87deeSRatan GuptaIndentWidth:     4
79aaf87deeSRatan GuptaIndentWrappedFunctionNames: true
80aaf87deeSRatan GuptaKeepEmptyLinesAtTheStartOfBlocks: true
81aaf87deeSRatan GuptaMacroBlockBegin: ''
82aaf87deeSRatan GuptaMacroBlockEnd:   ''
83aaf87deeSRatan GuptaMaxEmptyLinesToKeep: 1
84aaf87deeSRatan GuptaNamespaceIndentation: None
85aaf87deeSRatan GuptaObjCBlockIndentWidth: 2
86aaf87deeSRatan GuptaObjCSpaceAfterProperty: false
87aaf87deeSRatan GuptaObjCSpaceBeforeProtocolList: true
88aaf87deeSRatan GuptaPenaltyBreakBeforeFirstCallParameter: 19
89aaf87deeSRatan GuptaPenaltyBreakComment: 300
90aaf87deeSRatan GuptaPenaltyBreakFirstLessLess: 120
91aaf87deeSRatan GuptaPenaltyBreakString: 1000
92aaf87deeSRatan GuptaPenaltyExcessCharacter: 1000000
93aaf87deeSRatan GuptaPenaltyReturnTypeOnItsOwnLine: 60
94aaf87deeSRatan GuptaReflowComments:  true
951334b7b3SPatrick WilliamsSortIncludes:    true
961334b7b3SPatrick WilliamsSortUsingDeclarations: true
97aaf87deeSRatan GuptaSpaceAfterCStyleCast: false
981334b7b3SPatrick WilliamsSpaceAfterTemplateKeyword: true
99aaf87deeSRatan GuptaSpaceBeforeAssignmentOperators: true
1001334b7b3SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1011334b7b3SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1021334b7b3SPatrick WilliamsSpaceBeforeInheritanceColon: true
103aaf87deeSRatan GuptaSpaceBeforeParens: ControlStatements
1041334b7b3SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
105aaf87deeSRatan GuptaSpaceInEmptyParentheses: false
106aaf87deeSRatan GuptaSpacesBeforeTrailingComments: 1
107aaf87deeSRatan GuptaSpacesInAngles:  false
108aaf87deeSRatan GuptaSpacesInContainerLiterals: true
109aaf87deeSRatan GuptaSpacesInCStyleCastParentheses: false
110aaf87deeSRatan GuptaSpacesInParentheses: false
111aaf87deeSRatan GuptaSpacesInSquareBrackets: false
1121334b7b3SPatrick WilliamsStandard:        Latest
113aaf87deeSRatan GuptaTabWidth:        4
114*f87999d1SGeorge LiuUseCRLF: false
115aaf87deeSRatan GuptaUseTab:          Never
116aaf87deeSRatan Gupta...
117