-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
95 lines (95 loc) · 2.85 KB
/
Copy path.clang-format
File metadata and controls
95 lines (95 loc) · 2.85 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
BasedOnStyle: Google
AccessModifierOffset: '-2'
AllowAllArgumentsOnNextLine: 'false'
AllowAllConstructorInitializersOnNextLine: 'true'
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: 'false'
AllowShortIfStatementsOnASingleLine: 'Never'
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: 'false'
AlwaysBreakTemplateDeclarations: 'Yes'
BinPackArguments: 'true'
BinPackParameters: 'false'
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: 'true'
ColumnLimit: '200'
CompactNamespaces: 'false'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
Cpp11BracedListStyle: 'true'
DerivePointerAlignment: 'false'
FixNamespaceComments: 'true'
IncludeBlocks: Regroup
IncludeCategories:
#First, main header - should start with capital letter and not contain path separators
- Regex: '^[<"][A-Z][^/]*[>"]'
Priority: 10
CaseSensitive: true
#Second, headers concerning a special build target in the current project
- Regex: '^[<"](benchmark|tests|example)/.*[>"]'
Priority: 20
CaseSensitive: true
#Third, general headers from the current project
- Regex: '^[<"]mef/.*[>"]'
Priority: 30
CaseSensitive: true
#4th, headers from submodules: amgcl (more special), bds and others (less special)
- Regex: '^[<"]amgcl/.*[>"]'
Priority: 40
CaseSensitive: true
- Regex: '^[<"]bds/.*[>"]'
Priority: 42
CaseSensitive: true
- Regex: '^[<"](nlohmann)/.*[>"]'
Priority: 44
CaseSensitive: true
- Regex: '^[<"](spdlog|logging)/.*[>"]'
Priority: 46
CaseSensitive: true
#6th, system-wide headers containing path separators (like boost/*, gtest/* and so on)
- Regex: '^<[^A-Z].*\/.*>'
Priority: 60
CaseSensitive: true
#7th, other headers (general system headers falls in this group)
- Regex: '^<[^A-Z].*>'
Priority: 70
CaseSensitive: true
#IncludeIsMainRegex: ""
IndentCaseLabels: 'true'
IndentPPDirectives: None
IndentWidth: '4'
IndentWrappedFunctionNames: 'true'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
Language: Cpp
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: None
PointerAlignment: Left
ReflowComments: 'true'
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceAfterCStyleCast: 'false'
SpaceAfterLogicalNot: 'false'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeCpp11BracedList: 'false'
SpaceBeforeCtorInitializerColon: 'true'
SpaceBeforeInheritanceColon: 'true'
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: 'true'
SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '2'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
Standard: Cpp11
UseTab: Never
---
Language: Json
BasedOnStyle: Google