-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
51 lines (45 loc) · 1.24 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
---
Language: Cpp
IndentWidth: 4
ColumnLimit: 140
NamespaceIndentation: All
IndentCaseLabels: true
# Function-like formatting
AlignAfterOpenBracket: DontAlign
BinPackArguments: true
BinPackParameters: true
ExperimentalAutoDetectBinPacking: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllArgumentsOnNextLine: false
# Brace and parenthesis handling
BreakBeforeBraces: Attach
BraceWrapping:
AfterFunction: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
# Alignment settings
AlignOperands: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignTrailingComments: true
# Other formatting
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpacesInContainerLiterals: false
Cpp11BracedListStyle: true
# Indentation
ContinuationIndentWidth: 4
IndentWrappedFunctionNames: false
# List formatting
PackConstructorInitializers: Never
BreakConstructorInitializers: AfterColon
BreakBeforeConceptDeclarations: Always
AlwaysBreakAfterReturnType: None
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakBeforeMultilineStrings: false
BreakStringLiterals: false