xref: /petsc/.clang-format (revision 503c0ea9b45bcfbcebbb1ea5341243bbc69f0bea)
1---
2Language:        Cpp
3# BasedOnStyle:  LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignArrayOfStructures: Right
7AlignConsecutiveMacros: Consecutive
8AlignConsecutiveAssignments: AcrossComments
9AlignConsecutiveBitFields: AcrossComments
10AlignConsecutiveDeclarations: AcrossComments
11AlignEscapedNewlines: Right
12AlignOperands: DontAlign
13AlignTrailingComments: false
14AllowAllArgumentsOnNextLine: true
15AllowAllConstructorInitializersOnNextLine: true
16AllowAllParametersOfDeclarationOnNextLine: true
17AllowShortEnumsOnASingleLine: false
18AllowShortBlocksOnASingleLine: Always
19AllowShortCaseLabelsOnASingleLine: true
20AllowShortFunctionsOnASingleLine: Inline
21AllowShortLambdasOnASingleLine: All
22AllowShortIfStatementsOnASingleLine: AllIfsAndElse
23AllowShortLoopsOnASingleLine: true
24AlwaysBreakAfterDefinitionReturnType: None
25AlwaysBreakAfterReturnType: None
26AlwaysBreakBeforeMultilineStrings: false
27AlwaysBreakTemplateDeclarations: MultiLine
28AttributeMacros:
29  - __capability
30  - PETSC_EXTERN
31  - PETSC_INTERN
32  - PETSC_UNUSED
33BinPackArguments: true
34BinPackParameters: true
35BreakBeforeBraces: Custom
36BraceWrapping:
37  AfterCaseLabel:  false
38  AfterClass:      false
39  AfterControlStatement: Never
40  AfterEnum:       true
41  AfterFunction:   true
42  AfterNamespace:  true
43  AfterObjCDeclaration: false
44  AfterStruct:     true
45  AfterUnion:      true
46  AfterExternBlock: true
47  BeforeCatch:     false
48  BeforeElse:      false
49  BeforeLambdaBody: false
50  BeforeWhile:     false
51  IndentBraces:    false
52  SplitEmptyFunction: true
53  SplitEmptyRecord: true
54  SplitEmptyNamespace: true
55BreakBeforeBinaryOperators: None
56# BreakBeforeConceptDeclarations: Allowed
57BreakBeforeInheritanceComma: false
58BreakInheritanceList: AfterColon
59BreakBeforeTernaryOperators: true
60BreakConstructorInitializersBeforeComma: false
61BreakConstructorInitializers: AfterColon
62BreakAfterJavaFieldAnnotations: false
63BreakStringLiterals: true
64ColumnLimit:  100
65CompactNamespaces: false
66ConstructorInitializerAllOnOneLineOrOnePerLine: false
67ConstructorInitializerIndentWidth: 2
68ContinuationIndentWidth: 2
69Cpp11BracedListStyle: true
70DeriveLineEnding: true
71DerivePointerAlignment: false
72DisableFormat:   false
73EmptyLineAfterAccessModifier: Never
74EmptyLineBeforeAccessModifier: LogicalBlock
75ExperimentalAutoDetectBinPacking: false
76FixNamespaceComments: true
77ForEachMacros:
78  - foreach
79  - Q_FOREACH
80  - BOOST_FOREACH
81IfMacros:
82  - KJ_IF_MAYBE
83IncludeBlocks: Preserve
84IncludeIsMainSourceRegex: ''
85IndentAccessModifiers: false
86IndentCaseLabels: false
87IndentCaseBlocks: false
88IndentGotoLabels: true
89IndentPPDirectives: None
90IndentExternBlock: NoIndent
91IndentRequires:  false
92IndentWidth: 2
93IndentWrappedFunctionNames: false
94InsertTrailingCommas: None
95KeepEmptyLinesAtTheStartOfBlocks: false
96LambdaBodyIndentation: Signature
97MacroBlockBegin: ''
98MacroBlockEnd:   ''
99MaxEmptyLinesToKeep: 1
100NamespaceIndentation: None
101# PackConstructorInitializers: NextLine
102PenaltyBreakAssignment: 1000000
103PenaltyBreakBeforeFirstCallParameter: 1000000
104PenaltyBreakComment: 300
105PenaltyBreakFirstLessLess: 120
106PenaltyBreakString: 1000
107PenaltyBreakTemplateDeclaration: 10
108PenaltyExcessCharacter: 1000000
109PenaltyReturnTypeOnItsOwnLine: 1000000
110PenaltyIndentedWhitespace: 0
111PointerAlignment: Right
112PPIndentWidth: -1
113ReferenceAlignment: Pointer
114ReflowComments: true
115ShortNamespaceLines: 0
116SortIncludes: Never
117SortUsingDeclarations: true
118SpaceAfterCStyleCast: false
119SpaceAfterLogicalNot: false
120SpaceAfterTemplateKeyword: true
121SpaceBeforeAssignmentOperators: true
122SpaceBeforeCaseColon: false
123SpaceBeforeCpp11BracedList: false
124SpaceBeforeCtorInitializerColon: true
125SpaceBeforeInheritanceColon: true
126SpaceBeforeParens: ControlStatementsExceptControlMacros
127SpaceAroundPointerQualifiers: Default
128SpaceBeforeRangeBasedForLoopColon: true
129SpaceInEmptyBlock: true
130SpaceInEmptyParentheses: false
131SpacesBeforeTrailingComments: 1
132SpacesInAngles: Never
133SpacesInConditionalStatement: false
134SpacesInContainerLiterals: true
135SpacesInCStyleCastParentheses: false
136SpacesInLineCommentPrefix:
137  Minimum: 1
138  Maximum: -1
139SpacesInParentheses: false
140SpacesInSquareBrackets: false
141SpaceBeforeSquareBrackets: false
142BitFieldColonSpacing: Both
143Standard: Latest
144StatementAttributeLikeMacros:
145  - PETSC_EXTERN
146  - PETSC_INTERN
147StatementMacros:
148  - PETSC_UNUSED
149  - QT_REQUIRE_VERSION
150TabWidth: 4
151UseCRLF: false
152UseTab: Never
153WhitespaceSensitiveMacros:
154  - PetscStringize
155  - PetscStringize_
156...
157
158