Lines Matching refs:verifyIndependentOfContext
78 void verifyIndependentOfContext(llvm::StringRef text) { in verifyIndependentOfContext() function in clang::format::__anon4a65ed390111::FormatTest
5514 verifyIndependentOfContext("f(a, *a);"); in TEST_F()
5516 verifyIndependentOfContext("int a = b * 10;"); in TEST_F()
5517 verifyIndependentOfContext("int a = 10 * b;"); in TEST_F()
5518 verifyIndependentOfContext("int a = b * c;"); in TEST_F()
5519 verifyIndependentOfContext("int a += b * c;"); in TEST_F()
5520 verifyIndependentOfContext("int a -= b * c;"); in TEST_F()
5521 verifyIndependentOfContext("int a *= b * c;"); in TEST_F()
5522 verifyIndependentOfContext("int a /= b * c;"); in TEST_F()
5523 verifyIndependentOfContext("int a = *b;"); in TEST_F()
5524 verifyIndependentOfContext("int a = *b * c;"); in TEST_F()
5525 verifyIndependentOfContext("int a = b * *c;"); in TEST_F()
5526 verifyIndependentOfContext("int a = b * (10);"); in TEST_F()
5527 verifyIndependentOfContext("S << b * (10);"); in TEST_F()
5528 verifyIndependentOfContext("return 10 * b;"); in TEST_F()
5529 verifyIndependentOfContext("return *b * *c;"); in TEST_F()
5530 verifyIndependentOfContext("return a & ~b;"); in TEST_F()
5531 verifyIndependentOfContext("f(b ? *c : *d);"); in TEST_F()
5532 verifyIndependentOfContext("int a = b ? *c : *d;"); in TEST_F()
5533 verifyIndependentOfContext("*b = a;"); in TEST_F()
5534 verifyIndependentOfContext("a * ~b;"); in TEST_F()
5535 verifyIndependentOfContext("a * !b;"); in TEST_F()
5536 verifyIndependentOfContext("a * +b;"); in TEST_F()
5537 verifyIndependentOfContext("a * -b;"); in TEST_F()
5538 verifyIndependentOfContext("a * ++b;"); in TEST_F()
5539 verifyIndependentOfContext("a * --b;"); in TEST_F()
5540 verifyIndependentOfContext("a[4] * b;"); in TEST_F()
5541 verifyIndependentOfContext("a[a * a] = 1;"); in TEST_F()
5542 verifyIndependentOfContext("f() * b;"); in TEST_F()
5543 verifyIndependentOfContext("a * [self dostuff];"); in TEST_F()
5544 verifyIndependentOfContext("int x = a * (a + b);"); in TEST_F()
5545 verifyIndependentOfContext("(a *)(a + b);"); in TEST_F()
5546 verifyIndependentOfContext("*(int *)(p & ~3UL) = 0;"); in TEST_F()
5547 verifyIndependentOfContext("int *pa = (int *)&a;"); in TEST_F()
5548 verifyIndependentOfContext("return sizeof(int **);"); in TEST_F()
5549 verifyIndependentOfContext("return sizeof(int ******);"); in TEST_F()
5550 verifyIndependentOfContext("return (int **&)a;"); in TEST_F()
5551 verifyIndependentOfContext("f((*PointerToArray)[10]);"); in TEST_F()
5555 verifyIndependentOfContext("Type **A = static_cast<Type **>(P);"); in TEST_F()
5563 verifyIndependentOfContext("typedef void (*f)(int *a);"); in TEST_F()
5564 verifyIndependentOfContext("int i{a * b};"); in TEST_F()
5565 verifyIndependentOfContext("aaa && aaa->f();"); in TEST_F()
5566 verifyIndependentOfContext("int x = ~*p;"); in TEST_F()
5573 verifyIndependentOfContext("InvalidRegions[*R] = 0;"); in TEST_F()
5575 verifyIndependentOfContext("A<int *> a;"); in TEST_F()
5576 verifyIndependentOfContext("A<int **> a;"); in TEST_F()
5577 verifyIndependentOfContext("A<int *, int *> a;"); in TEST_F()
5578 verifyIndependentOfContext("A<int *[]> a;"); in TEST_F()
5579 verifyIndependentOfContext( in TEST_F()
5581 verifyIndependentOfContext("A<int **, int **> a;"); in TEST_F()
5582 verifyIndependentOfContext("void f(int *a = d * e, int *b = c * d);"); in TEST_F()
5617 verifyIndependentOfContext("a = *(x + y);"); in TEST_F()
5618 verifyIndependentOfContext("a = &(x + y);"); in TEST_F()
5619 verifyIndependentOfContext("*(x + y).call();"); in TEST_F()
5620 verifyIndependentOfContext("&(x + y)->call();"); in TEST_F()
5623 verifyIndependentOfContext("f(b * /* confusing comment */ ++c);"); in TEST_F()
5630 verifyIndependentOfContext("if (int *a = &b)"); in TEST_F()
5631 verifyIndependentOfContext("if (int &a = *b)"); in TEST_F()
5632 verifyIndependentOfContext("if (a & b[i])"); in TEST_F()
5633 verifyIndependentOfContext("if (a::b::c::d & b[i])"); in TEST_F()
5634 verifyIndependentOfContext("if (*b[i])"); in TEST_F()
5635 verifyIndependentOfContext("if (int *a = (&b))"); in TEST_F()
5636 verifyIndependentOfContext("while (int *a = &b)"); in TEST_F()
5637 verifyIndependentOfContext("size = sizeof *a;"); in TEST_F()
5638 verifyIndependentOfContext("if (a && (b = c))"); in TEST_F()
5653 verifyIndependentOfContext("A = new SomeType *[Length];"); in TEST_F()
5654 verifyIndependentOfContext("A = new SomeType *[Length]();"); in TEST_F()
5655 verifyIndependentOfContext("T **t = new T *;"); in TEST_F()
5656 verifyIndependentOfContext("T **t = new T *();"); in TEST_F()
5691 verifyIndependentOfContext("MACRO(int *i);"); in TEST_F()
5692 verifyIndependentOfContext("MACRO(auto *a);"); in TEST_F()
5693 verifyIndependentOfContext("MACRO(const A *a);"); in TEST_F()
5694 verifyIndependentOfContext("MACRO('0' <= c && c <= '9');"); in TEST_F()
5801 verifyIndependentOfContext("A<int &&> a;"); in TEST_F()
5802 verifyIndependentOfContext("A<int &&, int &&> a;"); in TEST_F()