File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 6
6
# Note that clang-format cannot express the style that closing parentheses
7
7
# behave similar to closing curly braces in a multi-line setting in that
8
8
# they have to be on a line of their own at the same indentation level
9
- # as the opening part.
9
+ # as the opening part (aka "dangling parenthesis", see https://reviews.llvm.org/D33029) .
10
10
11
11
Language : Cpp
12
12
BasedOnStyle : LLVM
13
+ AccessModifierOffset : -4
14
+ AlignAfterOpenBracket : AlwaysBreak
13
15
AlignEscapedNewlinesLeft : true
14
16
AlwaysBreakAfterReturnType : None
17
+ AlwaysBreakTemplateDeclarations : Yes
15
18
BinPackArguments : false
16
19
BinPackParameters : false
17
20
BreakBeforeBinaryOperators : All
18
21
BreakBeforeBraces : Allman
19
22
ColumnLimit : 120
20
23
ContinuationIndentWidth : 4
24
+ FixNamespaceComments : false
21
25
IndentWidth : 4
22
26
KeepEmptyLinesAtTheStartOfBlocks : false
23
27
MaxEmptyLinesToKeep : 2
24
28
PenaltyBreakBeforeFirstCallParameter : 2000
29
+ PointerAlignment : Left
25
30
SpaceAfterCStyleCast : true
31
+ SpaceAfterTemplateKeyword : false
32
+ SpaceBeforeCtorInitializerColon : false
33
+ SpaceBeforeInheritanceColon : false
26
34
SpaceBeforeParens : ControlStatements
35
+ SpaceBeforeRangeBasedForLoopColon : false
27
36
TabWidth : 4
28
- UseTab : ForIndentation
37
+ UseTab : Always
29
38
30
39
# Local Variables:
31
40
# mode: yaml
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ struct MeanSigma
141
141
double const d = 0;
142
142
int i = 0;
143
143
int j = 0;
144
- char* s;
144
+ char* s = nullptr ;
145
145
MeanAndSigma ms meanAndSigma(std::vector<float> const& _v, Accuracy _a);
146
146
Derived* x = dynamic_cast<Derived*>(base);
147
147
for (auto i = x->begin(); i != x->end(); ++i) {}
You can’t perform that action at this time.
0 commit comments