Before:
if (a &&(b = c)) ..
After:
if (a && (b = c)) ..
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231920
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!Previous)
break;
}
+ if (Previous->opensScope())
+ break;
if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator) &&
Previous->isOneOf(tok::star, tok::amp, tok::ampamp) &&
Previous->Previous && Previous->Previous->isNot(tok::equal))
verifyIndependentOfContext("if (int *a = (&b))");
verifyIndependentOfContext("while (int *a = &b)");
verifyIndependentOfContext("size = sizeof *a;");
+ verifyIndependentOfContext("if (a && (b = c))");
verifyFormat("void f() {\n"
" for (const int &v : Values) {\n"
" }\n"