xref: /openbmc/phosphor-dbus-monitor/.clang-format (revision c5fe26a60b7a5f1c3c1a08d9cf2da71467356798)
1d1eac88dSBrad Bishop---
2d1eac88dSBrad BishopLanguage:        Cpp
3d1eac88dSBrad Bishop# BasedOnStyle:  LLVM
4d1eac88dSBrad BishopAccessModifierOffset: -2
5d1eac88dSBrad BishopAlignAfterOpenBracket: Align
6d1eac88dSBrad BishopAlignConsecutiveAssignments: false
7d1eac88dSBrad BishopAlignConsecutiveDeclarations: false
83fe976ccSGeorge LiuAlignEscapedNewlines: Right
9*c5fe26a6SPatrick WilliamsAlignOperands:  Align
10*c5fe26a6SPatrick WilliamsAlignTrailingComments:
11*c5fe26a6SPatrick Williams  Kind: Always
12*c5fe26a6SPatrick Williams  OverEmptyLines: 1
13d1eac88dSBrad BishopAllowAllParametersOfDeclarationOnNextLine: true
14*c5fe26a6SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15d1eac88dSBrad BishopAllowShortCaseLabelsOnASingleLine: false
16*c5fe26a6SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17d1eac88dSBrad BishopAllowShortIfStatementsOnASingleLine: false
18d1eac88dSBrad BishopAllowShortLoopsOnASingleLine: false
19d1eac88dSBrad BishopAlwaysBreakAfterReturnType: None
20d1eac88dSBrad BishopAlwaysBreakBeforeMultilineStrings: false
213fe976ccSGeorge LiuAlwaysBreakTemplateDeclarations: Yes
22d1eac88dSBrad BishopBinPackArguments: true
23d1eac88dSBrad BishopBinPackParameters: true
24d1eac88dSBrad BishopBraceWrapping:
253fe976ccSGeorge Liu  AfterCaseLabel:  true
26d1eac88dSBrad Bishop  AfterClass:      true
27d1eac88dSBrad Bishop  AfterControlStatement: true
28d1eac88dSBrad Bishop  AfterEnum:       true
29d1eac88dSBrad Bishop  AfterFunction:   true
30d1eac88dSBrad Bishop  AfterNamespace:  true
31d1eac88dSBrad Bishop  AfterObjCDeclaration: true
32d1eac88dSBrad Bishop  AfterStruct:     true
33d1eac88dSBrad Bishop  AfterUnion:      true
343fe976ccSGeorge Liu  AfterExternBlock: true
35d1eac88dSBrad Bishop  BeforeCatch:     true
36d1eac88dSBrad Bishop  BeforeElse:      true
37d1eac88dSBrad Bishop  IndentBraces:    false
383fe976ccSGeorge Liu  SplitEmptyFunction:   false
393fe976ccSGeorge Liu  SplitEmptyRecord:     false
403fe976ccSGeorge Liu  SplitEmptyNamespace:  false
41*c5fe26a6SPatrick WilliamsBreakAfterAttributes: Never
42d1eac88dSBrad BishopBreakBeforeBinaryOperators: None
43d1eac88dSBrad BishopBreakBeforeBraces: Custom
44d1eac88dSBrad BishopBreakBeforeTernaryOperators: true
45d1eac88dSBrad BishopBreakConstructorInitializers: AfterColon
463fe976ccSGeorge LiuBreakInheritanceList: AfterColon
473fe976ccSGeorge LiuBreakStringLiterals: false
48d1eac88dSBrad BishopColumnLimit:     80
49d1eac88dSBrad BishopCommentPragmas:  '^ IWYU pragma:'
503fe976ccSGeorge LiuCompactNamespaces: false
51d1eac88dSBrad BishopConstructorInitializerAllOnOneLineOrOnePerLine: false
52d1eac88dSBrad BishopConstructorInitializerIndentWidth: 4
53d1eac88dSBrad BishopContinuationIndentWidth: 4
54d1eac88dSBrad BishopCpp11BracedListStyle: true
553fe976ccSGeorge LiuDeriveLineEnding: false
563d6d3182SPatrick VentureDerivePointerAlignment: false
57d1eac88dSBrad BishopPointerAlignment: Left
58d1eac88dSBrad BishopDisableFormat:   false
59d1eac88dSBrad BishopExperimentalAutoDetectBinPacking: false
60d1eac88dSBrad BishopFixNamespaceComments: true
61d1eac88dSBrad BishopForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
623d6d3182SPatrick VentureIncludeBlocks: Regroup
633d6d3182SPatrick VentureIncludeCategories:
643d6d3182SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
653fe976ccSGeorge Liu    Priority:        7
663d6d3182SPatrick Venture  - Regex:           '^"config.h"'
673d6d3182SPatrick Venture    Priority:        -1
683fe976ccSGeorge Liu  - Regex:           '^".*\.h"'
693d6d3182SPatrick Venture    Priority:        1
703fe976ccSGeorge Liu  - Regex:           '^".*\.hpp"'
713d6d3182SPatrick Venture    Priority:        2
723fe976ccSGeorge Liu  - Regex:           '^<.*\.h>'
733d6d3182SPatrick Venture    Priority:        3
743fe976ccSGeorge Liu  - Regex:           '^<.*\.hpp>'
753d6d3182SPatrick Venture    Priority:        4
763fe976ccSGeorge Liu  - Regex:           '^<.*'
773fe976ccSGeorge Liu    Priority:        5
783fe976ccSGeorge Liu  - Regex:           '.*'
793fe976ccSGeorge Liu    Priority:        6
80d1eac88dSBrad BishopIndentCaseLabels: true
81*c5fe26a6SPatrick WilliamsIndentRequiresClause: true
82d1eac88dSBrad BishopIndentWidth:     4
83d1eac88dSBrad BishopIndentWrappedFunctionNames: true
84*c5fe26a6SPatrick WilliamsInsertNewlineAtEOF: true
853fe976ccSGeorge LiuKeepEmptyLinesAtTheStartOfBlocks: false
86*c5fe26a6SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*c5fe26a6SPatrick WilliamsLineEnding: LF
88d1eac88dSBrad BishopMacroBlockBegin: ''
89d1eac88dSBrad BishopMacroBlockEnd:   ''
90d1eac88dSBrad BishopMaxEmptyLinesToKeep: 1
91d1eac88dSBrad BishopNamespaceIndentation: None
92d1eac88dSBrad BishopObjCBlockIndentWidth: 2
93d1eac88dSBrad BishopObjCSpaceAfterProperty: false
94d1eac88dSBrad BishopObjCSpaceBeforeProtocolList: true
95*c5fe26a6SPatrick WilliamsPenaltyBreakAssignment: 25
96d1eac88dSBrad BishopPenaltyBreakBeforeFirstCallParameter: 19
97d1eac88dSBrad BishopPenaltyBreakComment: 300
98d1eac88dSBrad BishopPenaltyBreakFirstLessLess: 120
99d1eac88dSBrad BishopPenaltyBreakString: 1000
100d1eac88dSBrad BishopPenaltyExcessCharacter: 1000000
101d1eac88dSBrad BishopPenaltyReturnTypeOnItsOwnLine: 60
102*c5fe26a6SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*c5fe26a6SPatrick WilliamsQualifierAlignment: Left
104*c5fe26a6SPatrick WilliamsReferenceAlignment: Left
105d1eac88dSBrad BishopReflowComments:  true
106*c5fe26a6SPatrick WilliamsRequiresClausePosition: OwnLine
107*c5fe26a6SPatrick WilliamsRequiresExpressionIndentation: Keyword
1083d6d3182SPatrick VentureSortIncludes:    true
1093d6d3182SPatrick VentureSortUsingDeclarations: true
110d1eac88dSBrad BishopSpaceAfterCStyleCast: false
1113fe976ccSGeorge LiuSpaceAfterTemplateKeyword: true
112d1eac88dSBrad BishopSpaceBeforeAssignmentOperators: true
1133fe976ccSGeorge LiuSpaceBeforeCpp11BracedList: false
1143fe976ccSGeorge LiuSpaceBeforeCtorInitializerColon: true
1153fe976ccSGeorge LiuSpaceBeforeInheritanceColon: true
116d1eac88dSBrad BishopSpaceBeforeParens: ControlStatements
1173fe976ccSGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
118d1eac88dSBrad BishopSpaceInEmptyParentheses: false
119d1eac88dSBrad BishopSpacesBeforeTrailingComments: 1
120d1eac88dSBrad BishopSpacesInAngles:  false
121d1eac88dSBrad BishopSpacesInContainerLiterals: true
122d1eac88dSBrad BishopSpacesInCStyleCastParentheses: false
123d1eac88dSBrad BishopSpacesInParentheses: false
124d1eac88dSBrad BishopSpacesInSquareBrackets: false
1253fe976ccSGeorge LiuStandard:        Latest
126d1eac88dSBrad BishopTabWidth:        4
127d1eac88dSBrad BishopUseTab:          Never
128d1eac88dSBrad Bishop...
129*c5fe26a6SPatrick Williams
130