-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
52 lines (43 loc) · 1.16 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
Language: Cpp
BasedOnStyle: LLVM
# Indent
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 120
# Space
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpacesInCStyleCastParentheses: false
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Cpp11BracedListStyle: true
# Funcion
BinPackParameters: false
BinPackArguments: false
# Next line
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
# Single line
AllowShortBlocksOnASingleLine: Always
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All # Inline
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
# Constructor
ConstructorInitializerAllOnOneLineOrOnePerLine: true
# Align
PointerAlignment: Right
ReferenceAlignment: Right
AlignAfterOpenBracket: Align
AlignOperands: Align
AlignEscapedNewlines: Right
# Break
BreakBeforeBinaryOperators: None
AlwaysBreakTemplateDeclarations: Yes
BreakInheritanceList: AfterColon # BeforeComma
BreakConstructorInitializers: AfterColon # BeforeComma
# Braces
BreakBeforeBraces: Attach