• Home
  • Raw
  • Download

Lines Matching refs:verifyIndependentOfContext

83   void verifyIndependentOfContext(llvm::StringRef text) {  in verifyIndependentOfContext()  function in clang::format::__anonbc5174420111::FormatTest
5680 verifyIndependentOfContext("f(a, *a);"); in TEST_F()
5682 verifyIndependentOfContext("int a = b * 10;"); in TEST_F()
5683 verifyIndependentOfContext("int a = 10 * b;"); in TEST_F()
5684 verifyIndependentOfContext("int a = b * c;"); in TEST_F()
5685 verifyIndependentOfContext("int a += b * c;"); in TEST_F()
5686 verifyIndependentOfContext("int a -= b * c;"); in TEST_F()
5687 verifyIndependentOfContext("int a *= b * c;"); in TEST_F()
5688 verifyIndependentOfContext("int a /= b * c;"); in TEST_F()
5689 verifyIndependentOfContext("int a = *b;"); in TEST_F()
5690 verifyIndependentOfContext("int a = *b * c;"); in TEST_F()
5691 verifyIndependentOfContext("int a = b * *c;"); in TEST_F()
5692 verifyIndependentOfContext("int a = b * (10);"); in TEST_F()
5693 verifyIndependentOfContext("S << b * (10);"); in TEST_F()
5694 verifyIndependentOfContext("return 10 * b;"); in TEST_F()
5695 verifyIndependentOfContext("return *b * *c;"); in TEST_F()
5696 verifyIndependentOfContext("return a & ~b;"); in TEST_F()
5697 verifyIndependentOfContext("f(b ? *c : *d);"); in TEST_F()
5698 verifyIndependentOfContext("int a = b ? *c : *d;"); in TEST_F()
5699 verifyIndependentOfContext("*b = a;"); in TEST_F()
5700 verifyIndependentOfContext("a * ~b;"); in TEST_F()
5701 verifyIndependentOfContext("a * !b;"); in TEST_F()
5702 verifyIndependentOfContext("a * +b;"); in TEST_F()
5703 verifyIndependentOfContext("a * -b;"); in TEST_F()
5704 verifyIndependentOfContext("a * ++b;"); in TEST_F()
5705 verifyIndependentOfContext("a * --b;"); in TEST_F()
5706 verifyIndependentOfContext("a[4] * b;"); in TEST_F()
5707 verifyIndependentOfContext("a[a * a] = 1;"); in TEST_F()
5708 verifyIndependentOfContext("f() * b;"); in TEST_F()
5709 verifyIndependentOfContext("a * [self dostuff];"); in TEST_F()
5710 verifyIndependentOfContext("int x = a * (a + b);"); in TEST_F()
5711 verifyIndependentOfContext("(a *)(a + b);"); in TEST_F()
5712 verifyIndependentOfContext("*(int *)(p & ~3UL) = 0;"); in TEST_F()
5713 verifyIndependentOfContext("int *pa = (int *)&a;"); in TEST_F()
5714 verifyIndependentOfContext("return sizeof(int **);"); in TEST_F()
5715 verifyIndependentOfContext("return sizeof(int ******);"); in TEST_F()
5716 verifyIndependentOfContext("return (int **&)a;"); in TEST_F()
5717 verifyIndependentOfContext("f((*PointerToArray)[10]);"); in TEST_F()
5721 verifyIndependentOfContext("Type **A = static_cast<Type **>(P);"); in TEST_F()
5730 verifyIndependentOfContext("typedef void (*f)(int *a);"); in TEST_F()
5731 verifyIndependentOfContext("int i{a * b};"); in TEST_F()
5732 verifyIndependentOfContext("aaa && aaa->f();"); in TEST_F()
5733 verifyIndependentOfContext("int x = ~*p;"); in TEST_F()
5740 verifyIndependentOfContext("InvalidRegions[*R] = 0;"); in TEST_F()
5742 verifyIndependentOfContext("A<int *> a;"); in TEST_F()
5743 verifyIndependentOfContext("A<int **> a;"); in TEST_F()
5744 verifyIndependentOfContext("A<int *, int *> a;"); in TEST_F()
5745 verifyIndependentOfContext("A<int *[]> a;"); in TEST_F()
5746 verifyIndependentOfContext( in TEST_F()
5748 verifyIndependentOfContext("A<int **, int **> a;"); in TEST_F()
5749 verifyIndependentOfContext("void f(int *a = d * e, int *b = c * d);"); in TEST_F()
5786 verifyIndependentOfContext("a = *(x + y);"); in TEST_F()
5787 verifyIndependentOfContext("a = &(x + y);"); in TEST_F()
5788 verifyIndependentOfContext("*(x + y).call();"); in TEST_F()
5789 verifyIndependentOfContext("&(x + y)->call();"); in TEST_F()
5792 verifyIndependentOfContext("f(b * /* confusing comment */ ++c);"); in TEST_F()
5799 verifyIndependentOfContext("if (int *a = &b)"); in TEST_F()
5800 verifyIndependentOfContext("if (int &a = *b)"); in TEST_F()
5801 verifyIndependentOfContext("if (a & b[i])"); in TEST_F()
5802 verifyIndependentOfContext("if (a::b::c::d & b[i])"); in TEST_F()
5803 verifyIndependentOfContext("if (*b[i])"); in TEST_F()
5804 verifyIndependentOfContext("if (int *a = (&b))"); in TEST_F()
5805 verifyIndependentOfContext("while (int *a = &b)"); in TEST_F()
5806 verifyIndependentOfContext("size = sizeof *a;"); in TEST_F()
5807 verifyIndependentOfContext("if (a && (b = c))"); in TEST_F()
5822 verifyIndependentOfContext("A = new SomeType *[Length];"); in TEST_F()
5823 verifyIndependentOfContext("A = new SomeType *[Length]();"); in TEST_F()
5824 verifyIndependentOfContext("T **t = new T *;"); in TEST_F()
5825 verifyIndependentOfContext("T **t = new T *();"); in TEST_F()
5860 verifyIndependentOfContext("MACRO(int *i);"); in TEST_F()
5861 verifyIndependentOfContext("MACRO(auto *a);"); in TEST_F()
5862 verifyIndependentOfContext("MACRO(const A *a);"); in TEST_F()
5863 verifyIndependentOfContext("MACRO('0' <= c && c <= '9');"); in TEST_F()
5970 verifyIndependentOfContext("A<int &&> a;"); in TEST_F()
5971 verifyIndependentOfContext("A<int &&, int &&> a;"); in TEST_F()