-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clang-format
44 lines (33 loc) · 1017 Bytes
/
.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
# options: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: google
IndentWidth: 4
ColumnLimit: 80
SpaceAfterCStyleCast: true
UseTab: Never
SpacesBeforeTrailingComments: 3
NamespaceIndentation: All
# AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: Never
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllArgumentsOnNextLine: false
AlignTrailingComments: true
AlignConsecutiveMacros: Consecutive
AlignConsecutiveAssignments:
Enabled: true
AlignCompound: true
AlignConsecutiveDeclarations: true
AlignAfterOpenBracket: BlockIndent
BreakBeforeBraces: Allman
BreakBeforeConceptDeclarations: Always
AlwaysBreakTemplateDeclarations: Yes
IndentRequiresClause: false
BinPackArguments: false
BinPackParameters: false
RemoveSemicolon: true
IncludeBlocks: Regroup
# use \n instead of \r\n
UseCRLF: false
PenaltyReturnTypeOnItsOwnLine: 100000000