-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.clang-format
More file actions
63 lines (54 loc) · 1.29 KB
/
.clang-format
File metadata and controls
63 lines (54 loc) · 1.29 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
---
BasedOnStyle: Google
Language: Cpp
Standard: c++14
ColumnLimit: 90
# Braces & blocks
BreakBeforeBraces: Allman
InsertBraces: true
RemoveSemicolon: true
# Indentation
IndentWidth: 2
AccessModifierOffset: -1
IndentCaseLabels: true
NamespaceIndentation: None
# Pointers & references
DerivePointerAlignment: false
PointerAlignment: Left
ReferenceAlignment: Left
# Short forms
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortLambdasOnASingleLine: Inline
AllowShortEnumsOnASingleLine: false
# Line management
InsertNewlineAtEOF: true
LineEnding: LF
KeepEmptyLinesAtTheStartOfBlocks: false
SeparateDefinitionBlocks: Always
# Includes
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"[^/]*\.h"'
Priority: 3
- Regex: '^<(fmt|cpp11|systemfonts|svglite)'
Priority: 2
- Regex: '^<'
Priority: 1
# Constructor initializers
PackConstructorInitializers: NextLine
BreakConstructorInitializers: BeforeComma
# Wrapping
BinPackArguments: true
BinPackParameters: true
AlignAfterOpenBracket: Align
# Misc
Cpp11BracedListStyle: true
SpaceAfterCStyleCast: false
SpacesBeforeTrailingComments: 2
QualifierAlignment: Left
...