forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
47 lines (41 loc) · 1.18 KB
/
.clang-format
File metadata and controls
47 lines (41 loc) · 1.18 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
BasedOnStyle: WebKit
AlignOperands: true
# until LLVM 11 this doesn't include `BeforeLambdaBody: true`, which is a bit nasty
BraceWrapping:
BeforeLambdaBody: true
AfterControlStatement: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
BeforeCatch: true
BeforeElse: true
AfterClass: true
AfterCaseLabel: true
AfterEnum: true
AfterUnion: true
IndentBraces: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
BreakBeforeBraces: Custom
BreakConstructorInitializers: BeforeColon
ConstructorInitializerIndentWidth: 4
SortIncludes: false
SpaceAfterTemplateKeyword: false
SpaceBeforeCpp11BracedList: false
# not supported in whatever MSVC bundles
#SpaceInEmptyBlock: false
TabWidth: 4
UseTab: ForContinuationAndIndentation
ContinuationIndentWidth: 0
BinPackArguments: true
BinPackParameters: true
AlignAfterOpenBracket: DontAlign
IndentCaseBlocks: false
IndentCaseLabels: true
NamespaceIndentation: Inner
# different things that'll change code, we won't use this yet
#AlignConsecutiveDeclarations: true
#AlignConsecutiveAssignments: true
#AlignTrailingComments: true