-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
57 lines (49 loc) · 1.2 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
BasedOnStyle: LLVM
MaxEmptyLinesToKeep: 1
ColumnLimit: 120
ExperimentalAutoDetectBinPacking: true
# Pack
PackConstructorInitializers: Never
BinPackParameters: false
BinPackArguments: false
# Indentation
UseTab: Always
IndentWidth: 4
ContinuationIndentWidth: 4
TabWidth: 4
AccessModifierOffset: -4
IndentCaseBlocks: false
IndentCaseLabels: false
# Namespace
CompactNamespaces: true
NamespaceIndentation: None
FixNamespaceComments: true
# Allow
AllowShortLambdasOnASingleLine: Inline
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
# Align
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlines: Left
# Break
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
# BreakConstructorInitializers: AfterColon
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
# Insert
InsertBraces: false
InsertNewlineAtEOF: true
# Remove
RemoveBracesLLVM: true
# KeepEmptyLines: # v19 only :(
# AtStartOfFile: false
# AtStartOfBlock: false
# AtEndOfFile: false