-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
48 lines (38 loc) · 1.11 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
# <https://clang.llvm.org/docs/ClangFormatStyleOptions.html>
# <https://dev.epicgames.com/documentation/en-us/unreal-engine/epic-cplusplus-coding-standard-for-unreal-engine>
---
#
# General
#
# Unreal puts pointers & references on the type.
PointerAlignment: Left
# Lots of comments have long lines and custom math formatting, so ignore.
ReflowComments: false
#
# Braces
#
# Unreal uses Allman style, and wants braces around all if, while, etc. bodies.
BreakBeforeBraces: Allman
InsertBraces: true
#
# Indentation
#
# Unreal uses 4-space-width tabs.
IndentWidth: 4
TabWidth: 4
UseTab: AlignWithSpaces
# Unreal does not indent public:, etc.
AccessModifierOffset: -4
IndentAccessModifiers: false
#
# Arguments & Parameters
#
# Don't pack. This puts them all on one row, or each on their own row.
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
BinPackArguments: false
BinPackParameters: false
PackConstructorInitializers: NextLine
# Unreal likes constructor initializers to have the comma at the start of the line.
BreakConstructorInitializers: BeforeComma