-
Notifications
You must be signed in to change notification settings - Fork 34
/
.clang-format
76 lines (76 loc) · 2.27 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
68
69
70
71
72
73
74
75
76
---
AccessModifierOffset: -4
AlignTrailingComments: true
AlignAfterOpenBracket: BlockIndent
AlignOperands: AlignAfterOperator
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllArgumentsOnNextLine: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: false
AllowShortLambdasOnASingleLine: Empty
AllowShortBlocksOnASingleLine: Empty
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BasedOnStyle: LLVM
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Allman
BreakBeforeConceptDeclarations: Always
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakAfterAttributes: Always
ColumnLimit: 80
ConstructorInitializerIndentWidth : 0
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
#PackConstructorInitializers: NextLineOnly
PenaltyBreakComment: 1
PenaltyBreakOpenParenthesis: 1
PenaltyBreakFirstLessLess: 1
PenaltyBreakString: 400
PenaltyExcessCharacter: 1
PenaltyReturnTypeOnItsOwnLine: 10
PenaltyIndentedWhitespace: 1
PointerAlignment: Left
QualifierAlignment: Custom
QualifierOrder: ['static', 'inline', 'const', 'type']
RequiresClausePosition: OwnLine
IndentRequiresClause: false
SeparateDefinitionBlocks: Always
ShortNamespaceLines: 0
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterRequiresInClause: true
AfterRequiresInExpression: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
Standard: c++20
UseTab: Never
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<[a-z_]+>$'
Priority: 1
- Regex: '^<[a-z_]+\.h>$'
Priority: 2
- Regex: '^(<|")(boost|commonpp).*'
Priority: 3
- Regex: '.*'
Priority: 4
WhitespaceSensitiveMacros: ['BOOST_PP_STRINGIZE']
...