Before:
void f() { f(a, c *d); }
After:
void f() { f(a, c * d); }
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222128
91177308-0d34-0410-b5e6-
96231b3b80d8
Previous && Previous->isOneOf(tok::star, tok::amp);
Previous = Previous->Previous)
Previous->Type = TT_PointerOrReference;
- Contexts.back().IsExpression = Contexts.back().InCtorInitializer;
+ if (Line.MustBeDeclaration)
+ Contexts.back().IsExpression = Contexts.back().InCtorInitializer;
} else if (Current.Previous &&
Current.Previous->Type == TT_CtorInitializerColon) {
Contexts.back().IsExpression = true;
verifyIndependentOfContext("aaa && aaa->f();");
verifyIndependentOfContext("int x = ~*p;");
verifyFormat("Constructor() : a(a), area(width * height) {}");
+ verifyFormat("void f() { f(a, c * d); }");
verifyIndependentOfContext("InvalidRegions[*R] = 0;");