forked from bfierz/vcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
69 lines (58 loc) · 1.6 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
67
68
69
---
BasedOnStyle: Chromium
IndentWidth: '4'
---
Language: Cpp
ColumnLimit: '0'
TabWidth: '4'
UseTab: ForContinuationAndIndentation
SortIncludes: 'false'
Cpp11BracedListStyle: 'false'
# Make sure access modifiers are aligned to the left
AccessModifierOffset: '-4'
# BraceWrapping
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: 'true'
AfterClass: 'true'
AfterControlStatement: Always # Switch code style to 'Never'
AfterEnum: 'true'
AfterFunction: 'true'
AfterNamespace: 'false' # Must be 'false' in order that CompactNamespaces has an effect
AfterStruct: 'true'
AfterUnion: 'true'
AfterExternBlock: 'true'
BeforeCatch: 'false'
BeforeElse: 'false'
IndentBraces: 'false'
SplitEmptyFunction: 'false'
SplitEmptyRecord: 'false'
SplitEmptyNamespace: 'false'
# Namespaces
CompactNamespaces: 'true'
FixNamespaceComments: 'false'
NamespaceIndentation: All
# Indentations
BreakConstructorInitializers: BeforeComma
ConstructorInitializerIndentWidth: 0
IndentCaseLabels: 'false'
# Macros
IndentPPDirectives: AfterHash
AlignEscapedNewlines: Right
KeepEmptyLinesAtTheStartOfBlocks: 'true'
AllowShortIfStatementsOnASingleLine: 'true'
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: 'true'
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
IndentWrappedFunctionNames: 'false'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortBlocksOnASingleLine: 'true'
# Spaces
SpaceAfterTemplateKeyword: 'false'
SpaceAfterCStyleCast: 'false'
SpaceBeforeCpp11BracedList: 'false'
SpaceInEmptyBlock: 'false'
SpacesBeforeTrailingComments: 1
SpacesInContainerLiterals: 'true'
...