-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.clang-format
More file actions
74 lines (74 loc) · 2.16 KB
/
.clang-format
File metadata and controls
74 lines (74 loc) · 2.16 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
# https://clang-format-configurator.site
# Copyright 2020-2025 Alfredo A. Correa
# this format specification requires clang-format version 15, it is optimized for clang-format version 19
---
Language: Cpp
AccessModifierOffset: -3
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignConsecutiveMacros: None
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowShortLambdasOnASingleLine: All
AllowShortCaseLabelsOnASingleLine: true
AlwaysBreakTemplateDeclarations: No
# BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BraceWrapping:
BeforeLambdaBody: false
ColumnLimit: 0
QualifierAlignment: Right
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: <(boost\/multi)\/
Priority: 1
- Regex: <([A-Za-z0-9\Q/-_\E])+>
Priority: 5
- Regex: <(boost)\/
Priority: 4
- Regex: <([A-Za-z0-9.\Q/-_\E])+>
Priority: 3
- Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
Priority: 2
#IndentPPDirectives: Leave
#IndentPPDirectives: None
IndentWidth: 4
# LambdaBodyIndentation: Signature
# OneLineFormatOffRegex: ^(\#ifdef|\#endif) # for clang-format version 21
# PackConstructorInitializers: CurrentLine
PenaltyBreakTemplateDeclaration: 10
PointerAlignment: Left
ReferenceAlignment: Left
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: false
AfterForeachMacros: false
AfterFunctionDeclarationName: false
AfterFunctionDefinitionName: false
AfterIfMacros: false # AfterNot: false
AfterOverloadedOperator: false # AfterPlacementOperator: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInLineCommentPrefix:
Minimum: 1
Standard: c++17
TabWidth: 4
UseTab: ForContinuationAndIndentation
WhitespaceSensitiveMacros:
- BOOST_TEST