forked from yellows111/collab-vm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
66 lines (49 loc) · 1.49 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
58
59
60
61
62
63
64
65
66
# Clang-Format file for collab-vm-server
# google style is the closest unfortunately
BasedOnStyle: Google
# Force left pointer alignment.
DerivePointerAlignment: false
PointerAlignment: Left
# I think if these two aren't the same
# it won't indent with tabs even with UseTab set to Always
TabWidth: 4
IndentWidth: 4
SpacesInSquareBrackets: false
UseTab: Always
IndentPPDirectives: BeforeHash
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
BinPackArguments: true
BinPackParameters: true
BreakConstructorInitializers: BeforeColon
BreakStringLiterals: false
# 130 columns is good but causes some weird issues I don't quite like
# especially in some codebases
#ColumnLimit: 130
ColumnLimit: 0
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ContinuationIndentWidth: 0
# turning this on causes major issues with initializer lists,
# turn it off
Cpp11BracedListStyle: false
# this is turned on to allow something like:
#
# T MyTValue {
# initalizer list...
# };
SpaceBeforeCpp11BracedList: true
SpaceAfterTemplateKeyword: false
FixNamespaceComments: true
NamespaceIndentation: All
# this EXPLODES doxygen comments.
# Kind of a problem when this means we have to go through every single
# documentation comment and fix it
ReflowComments: false
# no sorting
SortIncludes: false
SortUsingDeclarations: false
SpaceBeforeParens: Never
SpacesBeforeTrailingComments: 1