Newer
Older
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
BasedOnStyle: LLVM
# General style settings
UseTab: Never
IndentWidth: 4
ContinuationIndentWidth: 2
ColumnLimit: 120
PenaltyBreakAssignment: 4000
# Comments
AlignTrailingComments: true
# Values
Cpp11BracedListStyle: true
# Declaration
AlignConsecutiveDeclarations: true
PointerAlignment: Right
# Assignment
AlignConsecutiveAssignments: true
SpaceBeforeAssignmentOperators: true
# Blocks
AllowShortBlocksOnASingleLine: Always
# Operations
SpaceAfterCStyleCast: false
AlignOperands: AlignAfterOperator
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
# Macros
IndentPPDirectives: AfterHash
AlignConsecutiveMacros: true
# Function signatures
AlwaysBreakAfterReturnType: AllDefinitions
AlwaysBreakTemplateDeclarations: Yes
AlignAfterOpenBracket: true
BreakBeforeBraces: WebKit
BinPackParameters: false
# Class signature
ConstructorInitializerIndentWidth: 2
BreakConstructorInitializers: BeforeColon
BreakBeforeBraces: WebKit
EmptyLineBeforeAccessModifier: Always
# Misc
AllowShortCaseLabelsOnASingleLine: true