|
@@ -0,0 +1,122 @@
|
|
1
|
+Language: Cpp
|
|
2
|
+
|
|
3
|
+# Access modifiers in the middle
|
|
4
|
+AccessModifierOffset: -2
|
|
5
|
+
|
|
6
|
+# Align escaped newlines as far left as possible
|
|
7
|
+AlignEscapedNewlinesLeft: true
|
|
8
|
+
|
|
9
|
+# Align all trailing comments
|
|
10
|
+AlignTrailingComments: true
|
|
11
|
+
|
|
12
|
+# Don't allow parameters to be placed on the next line, even though BinPackParameters is false
|
|
13
|
+AllowAllParametersOfDeclarationOnNextLine: false
|
|
14
|
+
|
|
15
|
+# Do not allow short functions/if statements/loops on a single line
|
|
16
|
+AllowShortFunctionsOnASingleLine: false
|
|
17
|
+AllowShortIfStatementsOnASingleLine: false
|
|
18
|
+AllowShortLoopsOnASingleLine: false
|
|
19
|
+
|
|
20
|
+# Don't force breaks before multiline strings
|
|
21
|
+AlwaysBreakBeforeMultilineStrings: false
|
|
22
|
+
|
|
23
|
+# Don't force breaks before template declarations
|
|
24
|
+AlwaysBreakTemplateDeclarations: false
|
|
25
|
+
|
|
26
|
+# Force breaks after definition return type
|
|
27
|
+AlwaysBreakAfterDefinitionReturnType: true
|
|
28
|
+
|
|
29
|
+# Arguments and parameters are either on one line or on one line each
|
|
30
|
+BinPackArguments: false
|
|
31
|
+BinPackParameters: false
|
|
32
|
+
|
|
33
|
+# Do not break before binary operators
|
|
34
|
+BreakBeforeBinaryOperators: None
|
|
35
|
+
|
|
36
|
+# Use the linux brace breaking style: Attach braces to context except for braces on functions,
|
|
37
|
+# namespaces and class definitions
|
|
38
|
+BreakBeforeBraces: Linux
|
|
39
|
+
|
|
40
|
+# Do not place ternary operators after line breaks
|
|
41
|
+BreakBeforeTernaryOperators: false
|
|
42
|
+
|
|
43
|
+# In the constructor initializers do not align the comma with the colon
|
|
44
|
+BreakConstructorInitializersBeforeComma: false
|
|
45
|
+
|
|
46
|
+# Force columns to be less than 100 characters
|
|
47
|
+ColumnLimit: 100
|
|
48
|
+
|
|
49
|
+# Constructor initializer all in one line or all on their own line
|
|
50
|
+ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
51
|
+
|
|
52
|
+# Indent constructor initializers
|
|
53
|
+ConstructorInitializerIndentWidth: 8
|
|
54
|
+
|
|
55
|
+# Do not indent continuations
|
|
56
|
+ContinuationIndentWidth: 0
|
|
57
|
+
|
|
58
|
+# Do not use braced lists in c++11 style
|
|
59
|
+Cpp11BracedListStyle: false
|
|
60
|
+
|
|
61
|
+# Do not derive pointer alignment
|
|
62
|
+DerivePointerAlignment: false
|
|
63
|
+
|
|
64
|
+# Case labes are indented
|
|
65
|
+IndentCaseLabels: true
|
|
66
|
+
|
|
67
|
+# Do not indent function declarations
|
|
68
|
+IndentFunctionDeclarationAfterType: false
|
|
69
|
+
|
|
70
|
+# Indentation is 4 characters
|
|
71
|
+IndentWidth: 4
|
|
72
|
+
|
|
73
|
+# Do not keep empty lines at start of blocks
|
|
74
|
+KeepEmptyLinesAtTheStartOfBlocks: false
|
|
75
|
+
|
|
76
|
+# Keep at most 2 consecutive empty lines
|
|
77
|
+MaxEmptyLinesToKeep: 2
|
|
78
|
+
|
|
79
|
+# Do not indent namespaces
|
|
80
|
+NamespaceIndentation: None
|
|
81
|
+
|
|
82
|
+# Spaces for ObjC properties and protocol lists
|
|
83
|
+ObjCSpaceAfterProperty: true
|
|
84
|
+ObjCSpaceBeforeProtocolList: true
|
|
85
|
+
|
|
86
|
+# Penalties
|
|
87
|
+PenaltyBreakBeforeFirstCallParameter: 100
|
|
88
|
+PenaltyBreakComment: 10
|
|
89
|
+PenaltyBreakFirstLessLess: 0
|
|
90
|
+PenaltyBreakString: 100
|
|
91
|
+PenaltyExcessCharacter: 20
|
|
92
|
+PenaltyReturnTypeOnItsOwnLine: 20
|
|
93
|
+
|
|
94
|
+# Force pointers to typename (i.e. char* a instead of char *a)
|
|
95
|
+PointerAlignment: Left
|
|
96
|
+
|
|
97
|
+# Spaces after C-style casts and before assignments
|
|
98
|
+SpaceAfterCStyleCast: true
|
|
99
|
+SpaceBeforeAssignmentOperators: true
|
|
100
|
+
|
|
101
|
+# Only space before parentheses if they are control statements
|
|
102
|
+SpaceBeforeParens: ControlStatements
|
|
103
|
+
|
|
104
|
+# Single space before trailing comments
|
|
105
|
+SpacesBeforeTrailingComments: 1
|
|
106
|
+
|
|
107
|
+# No spaces in parentheses, angles, or square brackets
|
|
108
|
+SpaceInEmptyParentheses: false
|
|
109
|
+SpacesInAngles: false
|
|
110
|
+SpacesInCStyleCastParentheses: false
|
|
111
|
+SpacesInParentheses: false
|
|
112
|
+SpacesInSquareBrackets: false
|
|
113
|
+
|
|
114
|
+# Use c++11 as the language standard
|
|
115
|
+Standard: Cpp11
|
|
116
|
+
|
|
117
|
+# Tabs are 4 characters wide
|
|
118
|
+TabWidth: 4
|
|
119
|
+
|
|
120
|
+# Don't use tabs for indentation :-(
|
|
121
|
+UseTab: Never
|
|
122
|
+
|