forked from greenplum-db/diskquota-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
40 lines (32 loc) · 809 Bytes
/
.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
---
BasedOnStyle: Google
ColumnLimit: 120
# How much whitespace?
UseTab: ForIndentation
TabWidth: 4
IndentWidth: 4
ContinuationIndentWidth: 8
SpacesBeforeTrailingComments: 1
# Line things up
AccessModifierOffset: -4 # outdent `public:`, etc
DerivePointerAlignment: false
PointerAlignment: Right # char *foo, char &bar
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
# Braces
AlwaysBreakAfterReturnType: TopLevelDefinitions
AllowShortFunctionsOnASingleLine: Inline
BreakBeforeBraces: Custom
BraceWrapping:
AfterStruct: true
AfterClass: true
AfterEnum: true
AfterFunction: true
AfterControlStatement: true
AfterNamespace: false
AfterExternBlock: false
BeforeCatch: true
SplitEmptyFunction: false
SplitEmptyRecord: false
BeforeElse: true
SortIncludes: false