forked from freesurfer/freesurfer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
42 lines (35 loc) · 1.12 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
# Base style on something sane, then customize. WebKit looks like a good choice..
BasedOnStyle: Google
# readability
#AlignConsecutiveAssignments: true
#AlignConsecutiveDeclarations: true
AlignTrailingComments: true
AlignOperands: true
# Align arguments after round, angle and square brackets
AlignAfterOpenBracket: Align
# Newline all arguments and parameters consistently when not fitting onto a single line
BinPackArguments: false
BinPackParameters: false
# Use customized breaks for braces to conform with old FS coding patterns
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
# AfterControlStatement: true
# AfterEnum: true
AfterFunction: true
AfterNamespace: true
# AfterObjCDeclaration: true
AfterStruct: true
# AfterUnion: true
# BeforeCatch: true
BeforeElse: true
# IndentBraces: false
# Enforce indentation, width and use of tabs/vs spaces
IndentWidth: 2
ColumnLimit: 120 # this is pretty conservative these days
UseTab: Never
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Right
# Ensure nested templates will compile by inserting spaces
SpacesInAngles: true