forked from cjhannah/collab-vm-server-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
63 lines (46 loc) · 1.37 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
# Clang-Format file for collab-vm-server
BasedOnStyle: Google
# Force left pointer alignment,
# and don't let it be derived.
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
#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
SortIncludes: CaseInsensitive
SortUsingDeclarations: true
SpaceBeforeParens: Never
SpacesBeforeTrailingComments: 1