-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.clang-format
40 lines (38 loc) · 1.01 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
# Commented out lines are those which are not yet valid
# in clang-3.8 which ships with Ubuntu
IndentWidth: 2
AccessModifierOffset: -2
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
UseTab: Never
SpacesInParentheses: false
# SpaceBeforeParens: 'Control'
SpaceInEmptyParentheses: false
SpacesInAngles: false
# CompactNamespaces: false
NamespaceIndentation: 'Inner'
# FixNamespaceComments: true
BreakBeforeBraces: 'Custom'
# BreakConstructorInitializers: 'AfterColon'
AllowShortFunctionsOnASingleLine: 'None'
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: false
BinPackArguments: false
BinPackParameters: false
Standard: Cpp11
BraceWrapping:
AfterClass: true
AfterControlStatement: false
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
# AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
# SplitEmptyFunction: true
# SplitEmptyRecord: true
# SplitEmptyNamespace: true