|
@@ -5009,6 +5009,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
|
|
verifyIndependentOfContext("aaa && aaa->f();");
|
|
verifyIndependentOfContext("aaa && aaa->f();");
|
|
verifyIndependentOfContext("int x = ~*p;");
|
|
verifyIndependentOfContext("int x = ~*p;");
|
|
verifyFormat("Constructor() : a(a), area(width * height) {}");
|
|
verifyFormat("Constructor() : a(a), area(width * height) {}");
|
|
|
|
+ verifyFormat("Constructor() : a(a), area(a, width * height) {}");
|
|
verifyFormat("void f() { f(a, c * d); }");
|
|
verifyFormat("void f() { f(a, c * d); }");
|
|
|
|
|
|
verifyIndependentOfContext("InvalidRegions[*R] = 0;");
|
|
verifyIndependentOfContext("InvalidRegions[*R] = 0;");
|