Fix #286 - Weird indentation in else branch after wrapping expression
This commit is contained in:
parent
886903f8ea
commit
0ac3f1b291
|
@ -730,6 +730,7 @@ private:
|
|||
else
|
||||
{
|
||||
writeToken();
|
||||
indents.popWrapIndents();
|
||||
linebreakHints = [];
|
||||
while (indents.topIs(tok!"enum"))
|
||||
indents.pop();
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
void foo()
|
||||
{
|
||||
if (true)
|
||||
enum vectorizeable = aLongExpressionThatCausesWrapping()
|
||||
&& aLongExpressionThatCausesWrapping();
|
||||
else
|
||||
enum vectorizeable = false;
|
||||
|
||||
if (true)
|
||||
{
|
||||
enum vectorizeable = aLongExpressionThatCausesWrapping()
|
||||
&& aLongExpressionThatCausesWrapping();
|
||||
}
|
||||
else
|
||||
enum vectorizeable = false;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
void foo()
|
||||
{
|
||||
if (true)
|
||||
enum vectorizeable = aLongExpressionThatCausesWrapping()
|
||||
&& aLongExpressionThatCausesWrapping();
|
||||
else
|
||||
enum vectorizeable = false;
|
||||
|
||||
if (true){
|
||||
enum vectorizeable = aLongExpressionThatCausesWrapping()
|
||||
&& aLongExpressionThatCausesWrapping();}
|
||||
else
|
||||
enum vectorizeable = false;
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
void foo() {
|
||||
if (true)
|
||||
enum vectorizeable = aLongExpressionThatCausesWrapping()
|
||||
&& aLongExpressionThatCausesWrapping();
|
||||
else
|
||||
enum vectorizeable = false;
|
||||
|
||||
if (true) {
|
||||
enum vectorizeable = aLongExpressionThatCausesWrapping()
|
||||
&& aLongExpressionThatCausesWrapping();
|
||||
} else
|
||||
enum vectorizeable = false;
|
||||
}
|
Loading…
Reference in New Issue