-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
67 lines (67 loc) · 1.84 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
# SPDX-FileCopyrightText: 2022 The dune-iga developers [email protected]
# SPDX-License-Identifier: CC0-1.0
BasedOnStyle: Google
PointerAlignment: Left
DerivePointerAlignment: false
AccessModifierOffset: -2
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AlwaysBreakTemplateDeclarations: Yes
AllowShortLoopsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
ColumnLimit: 120
QualifierAlignment: Left
ConstructorInitializerAllOnOneLineOrOnePerLine: true
SortIncludes: CaseInsensitive
BreakBeforeConceptDeclarations: true
SpacesBeforeTrailingComments : 1
AllowAllArgumentsOnNextLine: true
AlignAfterOpenBracket: Align
BinPackArguments: true
BinPackParameters: true
SpacesInAngles: Never
AlignArrayOfStructures: Right
BreakConstructorInitializers: BeforeColon
PackConstructorInitializers: Never
RequiresClausePosition: OwnLine
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 1
IndentRequiresClause: false
IndentPPDirectives: BeforeHash
AlignConsecutiveAssignments: true
IndentWidth: 2
BreakAfterAttributes: Leave
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterClass: true
SplitEmptyFunction: false
AfterFunction: false
NamespaceIndentation: Inner
SpaceAfterTemplateKeyword: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterOverloadedOperator: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: 'config.h'
Priority: -1
SortPriority: -1
- Regex: '^(<|")dune/'
Priority: 3
SortPriority: 3
- Regex: '<([A-Za-z0-9.\/-_])+>'
Priority: 2
SortPriority: 2
- Regex: '"([A-Za-z0-9.\/-_])+"'
Priority: 1
SortPriority: 1
...