forked from GodotVR/godot_openxr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
50 lines (43 loc) · 1.25 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
---
# SPDX-LicenseIdentifier: CC0-1.0
# SPDX-FileCopyrightText: 2019, Collabora, Ltd.
Language: Cpp
BasedOnStyle: LLVM
Standard: Auto
# Includes
SortIncludes: false
# Spacing and Blank Lines
DerivePointerAlignment: false
PointerAlignment: Right
#AlignEscapedNewlines: DontAlign
#AlignConsecutiveDeclarations: false
#AlignConsecutiveAssignments: false
MaxEmptyLinesToKeep: 3
# Indentation
IndentWidth: 8
TabWidth: 8
UseTab: ForIndentation
AccessModifierOffset: -8
IndentCaseLabels: false
NamespaceIndentation: Inner
# Line length/reflow
ColumnLimit: 80
ReflowComments: true
# Line breaks
AlwaysBreakAfterReturnType: All
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterClass: true
SplitEmptyFunction: false
AfterFunction: true
AfterNamespace: false
# false means either "all on one line" or "each on their own",
# won't put more than one on a line if they don't all fit.
BinPackArguments: true
BinPackParameters: false