-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
64 lines (64 loc) · 1.64 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
# https://clang-format-configurator.site
# Copyright 2020-2024 Alfredo A. Correa
---
Language: Cpp
AccessModifierOffset: -3
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowShortLambdasOnASingleLine: Inline
AllowShortCaseLabelsOnASingleLine: true
AlwaysBreakTemplateDeclarations: No
BreakInheritanceList: BeforeComma
BraceWrapping:
BeforeLambdaBody: false
ColumnLimit: 0
QualifierAlignment: Right
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: <boost/test/unit_test\.hpp>
Priority: 1
- Regex: <(boost\/multi)\/
Priority: 2
- Regex: <([A-Za-z0-9\Q/-_\E])+>
Priority: 6
- Regex: <(catch2|boost)\/
Priority: 5
- Regex: <([A-Za-z0-9.\Q/-_\E])+>
Priority: 4
- Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
Priority: 3
IndentPPDirectives: BeforeHash
IndentWidth: 4
# LambdaBodyIndentation: Signature
PenaltyBreakTemplateDeclaration: 10
PointerAlignment: Left
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: false
SpacesBeforeTrailingComments: 2
SpacesInLineCommentPrefix:
Minimum: 1
Standard: c++17
TabWidth: 4
UseTab: ForContinuationAndIndentation
WhitespaceSensitiveMacros:
- BOOST_REQUIRE
- BOOST_TEST
- BOOST_TEST_REQUIRE
- BOOST_AUTO_TEST_CASE