Lines Matching refs:matches

28   EXPECT_TRUE(matches(Program,  in TEST()
31 EXPECT_TRUE(matches(Program, in TEST()
36 EXPECT_TRUE(matches(Program, in TEST()
42 EXPECT_TRUE(matches(Program, in TEST()
53 EXPECT_TRUE(matches("class Y { class X {}; };", HasClassX)); in TEST()
54 EXPECT_TRUE(matches("class X {};", HasClassX)); in TEST()
58 EXPECT_TRUE(matches("class Y { class X {}; };", YHasClassX)); in TEST()
77 EXPECT_TRUE(matches( in TEST()
89 EXPECT_TRUE(matches( in TEST()
103 EXPECT_TRUE(matches( in TEST()
142 EXPECT_TRUE(matches("class F {};", Recursive)); in TEST()
143 EXPECT_TRUE(matches("class Z {};", Recursive)); in TEST()
144 EXPECT_TRUE(matches("class C {};", Recursive)); in TEST()
145 EXPECT_TRUE(matches("class M { class N { class X {}; }; };", Recursive)); in TEST()
146 EXPECT_TRUE(matches("class M { class N { class B {}; }; };", Recursive)); in TEST()
148 matches("class O1 { class O2 {" in TEST()
160 EXPECT_TRUE(matches("class Y {}; class Z : public Y {};", NotClassX)); in TEST()
172 EXPECT_TRUE(matches("class X { class Z {}; };", ClassXHasNotClassY)); in TEST()
178 EXPECT_TRUE(matches("void Foo(){}", NamedNotRecord)); in TEST()
183 EXPECT_TRUE(matches("char *p = 0;", in TEST()
187 EXPECT_TRUE(matches("char *p = 0;", in TEST()
196 EXPECT_TRUE(matches("class Z { class X {}; };", ZDescendantClassX)); in TEST()
198 matches("class Z { class Y { class X {}; }; };", ZDescendantClassX)); in TEST()
200 matches("class Z { class A { class Y { class X {}; }; }; };", in TEST()
203 matches("class Z { class A { class B { class Y { class X {}; }; }; }; };", in TEST()
212 EXPECT_TRUE(matches("class Z { class X { class Y {}; }; };", in TEST()
215 matches("class Z { class A { class B { class X { class Y {}; }; }; }; };", in TEST()
236 matches("class Z { class A { class X { class B { class Y {}; }; }; }; };", in TEST()
238 EXPECT_TRUE(matches( in TEST()
254 EXPECT_TRUE(matches("void f() { int i; }", CannotMemoize)); in TEST()
267 EXPECT_TRUE(matches("void f() { int i; }", in TEST()
285 EXPECT_TRUE(matches("struct __attribute__((warn_unused)) X {};", in TEST()
287 EXPECT_FALSE(matches("struct X {};", in TEST()
295 EXPECT_TRUE(matches("class X {}; class Z : public X {};", YOrZDerivedFromX)); in TEST()
296 EXPECT_TRUE(matches("class Y {};", YOrZDerivedFromX)); in TEST()
303 EXPECT_TRUE(matches("class X {};", XOrYOrZOrU)); in TEST()
309 EXPECT_TRUE(matches("class X {};", XOrYOrZOrUOrV)); in TEST()
310 EXPECT_TRUE(matches("class Y {};", XOrYOrZOrUOrV)); in TEST()
311 EXPECT_TRUE(matches("class Z {};", XOrYOrZOrUOrV)); in TEST()
312 EXPECT_TRUE(matches("class U {};", XOrYOrZOrUOrV)); in TEST()
313 EXPECT_TRUE(matches("class V {};", XOrYOrZOrUOrV)); in TEST()
317 EXPECT_TRUE(matches("int F() { return 1 + 2; }", MixedTypes)); in TEST()
318 EXPECT_TRUE(matches("int F() { if (true) return 1; }", MixedTypes)); in TEST()
322 matches("void f() try { } catch (int) { } catch (...) { }", in TEST()
329 EXPECT_TRUE(matches("class X {}; class Y : public X {};", IsDerivedFromX)); in TEST()
337 EXPECT_TRUE(matches("class X {}; class Y : public X {};", IsAX)); in TEST()
338 EXPECT_TRUE(matches("class X {};", IsAX)); in TEST()
339 EXPECT_TRUE(matches("class X;", IsAX)); in TEST()
346 matches("class X {}; class Y : public X {}; class Z : public Y {};", in TEST()
349 matches("class X {};" in TEST()
352 EXPECT_TRUE(matches("class X {}; template<class T> class Z : public X {};", in TEST()
355 matches("template<class T> class X {}; " in TEST()
359 matches("template<class T, class U=T> class X {}; " in TEST()
366 matches("template<class X> class A { public: class Z : public X {}; }; " in TEST()
369 matches("template <class T> class X {}; " in TEST()
376 matches("template<template<class T> class X> class A { " in TEST()
384 matches("template<class X> class A { public: " in TEST()
389 matches("class X {}; typedef X Y; class Z : public Y {};", in TEST()
392 matches("template<class T> class Y { typedef typename T::U X; " in TEST()
394 EXPECT_TRUE(matches("class X {}; class Z : public ::X {};", in TEST()
401 matches("template<class T> class X { public: typedef X<T> D; }; " in TEST()
409 matches("class X {}; typedef X V; typedef V W; class Z : public W {};", in TEST()
412 matches("class X {}; class Y : public X {}; " in TEST()
416 matches("template<class T, class U> class X {}; " in TEST()
424 matches("class X {}; typedef X A; typedef A B; " in TEST()
427 matches("class X {}; typedef X A; typedef A B; typedef B C; " in TEST()
430 matches("class U {}; typedef U X; typedef X V; " in TEST()
433 matches("class Base {}; typedef Base X; " in TEST()
436 matches("class Base {}; typedef Base Base2; typedef Base2 X; " in TEST()
442 matches("class A {}; typedef A X; typedef A Y; " in TEST()
450 matches("template <typename T> class X;" in TEST()
454 EXPECT_TRUE(matches( in TEST()
464 EXPECT_TRUE(matches( in TEST()
484 EXPECT_TRUE(matches( in TEST()
492 EXPECT_TRUE(matches( in TEST()
509 EXPECT_TRUE(matches( in TEST()
517 EXPECT_TRUE(matches( in TEST()
522 EXPECT_TRUE(matches( in TEST()
529 EXPECT_TRUE(matches( in TEST()
533 EXPECT_TRUE(matches( in TEST()
542 EXPECT_TRUE(matches("auto x = []{};", IsLambda)); in TEST()
601 matches("class Y { public: void x(); }; void z() {Y* y; y->x(); }", in TEST()
604 matches("class X { void x(int x) {} };", in TEST()
606 EXPECT_TRUE(matches("namespace ns { struct A {}; } struct B { ns::A a; };", in TEST()
608 EXPECT_TRUE(matches("namespace { struct A {}; } struct B { A a; };", in TEST()
615 EXPECT_TRUE(matches("class Y { }; " in TEST()
626 EXPECT_TRUE(matches("class Y; int operator*(Y &); void f(Y &y) { *y; }", in TEST()
630 EXPECT_TRUE(matches("class Y { int operator*(); };", in TEST()
635 EXPECT_TRUE(matches("class Y; int operator*(Y &);", AnyOpStar)); in TEST()
636 EXPECT_TRUE(matches("class Y { int operator*(); };", AnyOpStar)); in TEST()
647 EXPECT_TRUE(matches("class Y { }; " in TEST()
652 matches("class Y { }; " in TEST()
660 EXPECT_TRUE(matches("void f() { int X; }", M)); in TEST()
666 EXPECT_TRUE(matches("int X;", M)); in TEST()
667 EXPECT_TRUE(matches("void f() { static int X; }", M)); in TEST()
674 EXPECT_TRUE(matches(T, varDecl(hasName("x"), hasAutomaticStorageDuration()))); in TEST()
680 EXPECT_TRUE(matches(T, varDecl(hasName("y"), hasStaticStorageDuration()))); in TEST()
681 EXPECT_TRUE(matches(T, varDecl(hasName("a"), hasStaticStorageDuration()))); in TEST()
694 EXPECT_TRUE(matches( in TEST()
700 EXPECT_TRUE(matches("void x() { int a = sizeof(a); }", sizeOfExpr( in TEST()
704 EXPECT_TRUE(matches( in TEST()
712 EXPECT_TRUE(matches("int i = 0;", varDecl(hasType(isInteger())))); in TEST()
713 EXPECT_TRUE(matches( in TEST()
727 EXPECT_TRUE(matches("int i = 0;", varDecl(hasType(isSignedInteger())))); in TEST()
734 EXPECT_TRUE(matches("unsigned i = 0;", in TEST()
739 EXPECT_TRUE(matches("int* i = nullptr;", varDecl(hasType(isAnyPointer())))); in TEST()
752 EXPECT_TRUE(matches("char i = 0;", varDecl(hasType(isAnyCharacter())))); in TEST()
760 EXPECT_TRUE(matches("class Y { void x() { this->y; } int y; };", in TEST()
762 EXPECT_TRUE(matches("class Y { void x() { y; } int y; };", in TEST()
769 EXPECT_TRUE(matches("class Y { void x() { this->y; } static int y; };", in TEST()
778 EXPECT_TRUE(matches("class Y { void x() { this->x(); } };", in TEST()
780 EXPECT_TRUE(matches("class Y { void x() { x(); } };", in TEST()
787 EXPECT_TRUE(matches("struct S { explicit operator int(); };", in TEST()
796 EXPECT_TRUE(matches("void x(int) { x(0); }", Call1Arg)); in TEST()
797 EXPECT_TRUE(matches("class X { void x(int) { x(0); } };", Call1Arg)); in TEST()
803 EXPECT_TRUE(matches("void f(int i) {}", Function1Arg)); in TEST()
804 EXPECT_TRUE(matches("class X { void f(int i) {} };", Function1Arg)); in TEST()
807 EXPECT_TRUE(matches("void f(int i, ...) {};", Function1Arg)); in TEST()
813 EXPECT_TRUE(matches("class X {}; void y(X y) { X &x = y; }", in TEST()
816 matches("class X {}; void y(X y) { const X &x = y; }", ReferenceClassX)); in TEST()
820 matches("class X {}; void y(X y) { X x = y; }", ReferenceClassX)); in TEST()
830 EXPECT_TRUE(matches("int *const j = nullptr;", in TEST()
832 EXPECT_TRUE(matches("int *volatile k;", in TEST()
839 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC()))); in TEST()
840 EXPECT_TRUE(matches("extern \"C\" { void f() {} }", in TEST()
848 EXPECT_TRUE(matches("class B { ~B() = default; };", in TEST()
855 EXPECT_TRUE(matches("void Func() = delete;", in TEST()
864 EXPECT_TRUE(matches("void f() throw();", functionDecl(isNoThrow()))); in TEST()
865 EXPECT_TRUE(matches("void f() noexcept;", functionDecl(isNoThrow()))); in TEST()
871 EXPECT_TRUE(matches("void f() throw();", functionProtoType(isNoThrow()))); in TEST()
872 EXPECT_TRUE(matches("void f() noexcept;", functionProtoType(isNoThrow()))); in TEST()
876 EXPECT_TRUE(matches("constexpr int foo = 42;", in TEST()
878 EXPECT_TRUE(matches("constexpr int bar();", in TEST()
884 matches("template<typename T> struct C {}; C<int> c;", in TEST()
890 EXPECT_TRUE(matches("template<typename T> struct C {}; C<int> c;", in TEST()
898 EXPECT_TRUE(matches("template<int T> struct C {}; C<42> c;", in TEST()
907 EXPECT_TRUE(matches("template<int T> struct C {}; C<42> c;", in TEST()
910 EXPECT_TRUE(matches("template<int T> struct C {}; C<-42> c;", in TEST()
913 EXPECT_TRUE(matches("template<int T> struct C {}; C<-0042> c;", in TEST()
922 EXPECT_TRUE(matches("class C { public: int i; };", accessSpecDecl())); in TEST()
924 matches("class C { public: int i; };", accessSpecDecl(isPublic()))); in TEST()
934 EXPECT_TRUE(matches("class X final {};", cxxRecordDecl(isFinal()))); in TEST()
935 EXPECT_TRUE(matches("class X { virtual void f() final; };", in TEST()
943 EXPECT_TRUE(matches("class X { virtual int f(); };", in TEST()
949 EXPECT_TRUE(matches("class A { virtual int f(); };" in TEST()
959 EXPECT_TRUE(matches("class X { virtual int f() = 0; };", in TEST()
965 EXPECT_TRUE(matches("class X { X &operator=(X); };", in TEST()
967 EXPECT_TRUE(matches("class X { X &operator=(X &); };", in TEST()
969 EXPECT_TRUE(matches("class X { X &operator=(const X &); };", in TEST()
971 EXPECT_TRUE(matches("class X { X &operator=(volatile X &); };", in TEST()
973 EXPECT_TRUE(matches("class X { X &operator=(const volatile X &); };", in TEST()
982 EXPECT_TRUE(matches("class X { X &operator=(X &&); };", in TEST()
984 EXPECT_TRUE(matches("class X { X &operator=(const X &&); };", in TEST()
986 EXPECT_TRUE(matches("class X { X &operator=(volatile X &&); };", in TEST()
988 EXPECT_TRUE(matches("class X { X &operator=(const volatile X &&); };", in TEST()
996 matches("struct A { void foo() const; };", cxxMethodDecl(isConst()))); in TEST()
1002 EXPECT_TRUE(matches("class X { virtual int f(); }; " in TEST()
1014 matches("template <typename Base> struct Y : Base { void f() override;};", in TEST()
1023 matches("class X { public: X(int); }; void x() { int y; X x(y); }", in TEST()
1026 matches("class X { public: X(int); }; void x() { int y; X x = X(y); }", in TEST()
1029 matches("class X { public: X(int); }; void x() { int y; X x = y; }", in TEST()
1046 matches("class X { public: X(int); }; void x() { X x(0); }", in TEST()
1049 matches("class X { public: X(int); }; void x() { X x = X(0); }", in TEST()
1052 matches("class X { public: X(int); }; void x() { X x = 0; }", in TEST()
1064 matches("class X { public: X(int); }; void x() { X x{0}; }", in TEST()
1067 matches("class X { public: X(int); }; void x() { X x(0); }", in TEST()
1077 EXPECT_TRUE(matches("class Foo { }; Foo* f = new Foo();", in TEST()
1079 EXPECT_TRUE(matches("class Foo { Foo(){} };", in TEST()
1082 EXPECT_TRUE(matches("struct A { int x; } a = {0}, b = a; void f() { a = b; }", in TEST()
1087 EXPECT_TRUE(matches("struct S { explicit S(int); };", in TEST()
1094 EXPECT_TRUE(matches("struct S { S(); };", in TEST()
1103 EXPECT_TRUE(matches("struct S { S(const S&); };", in TEST()
1112 EXPECT_TRUE(matches("struct S { S(S&&); };", in TEST()
1124 matches("struct S { S(); };", cxxConstructorDecl(isUserProvided()))); in TEST()
1125 EXPECT_TRUE(matches("struct S { S(); }; S::S(){}", in TEST()
1134 EXPECT_TRUE(matches( in TEST()
1137 EXPECT_TRUE(matches( in TEST()
1144 EXPECT_TRUE(matches("const char *s = \"abcd\";", Literal)); in TEST()
1146 EXPECT_TRUE(matches("const wchar_t *s = L\"abcd\";", Literal)); in TEST()
1148 EXPECT_TRUE(matches("const char *s = \"\x05\x06\x07\x08\";", Literal)); in TEST()
1154 EXPECT_TRUE(matches("namespace a { namespace b { class C; } }", in TEST()
1156 EXPECT_TRUE(matches("namespace a { namespace b { class C; } }", in TEST()
1158 EXPECT_TRUE(matches("namespace a { namespace b { class C; } }", in TEST()
1160 EXPECT_TRUE(matches("namespace a { namespace b { class C; } }", in TEST()
1182 matches("class A { class B { class C; }; };", in TEST()
1185 matches("class A { class B { class C; }; };", in TEST()
1188 matches("class A { class B { class C; }; };", in TEST()
1191 matches("class A { class B { class C; }; };", in TEST()
1217 EXPECT_TRUE(matches(code, recordDecl(hasName("a::b::C")))); in TEST()
1218 EXPECT_TRUE(matches(code, recordDecl(hasName("a::C")))); in TEST()
1219 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::b::C")))); in TEST()
1220 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::C")))); in TEST()
1226 matches(code, recordDecl(hasName("a::(anonymous namespace)::C")))); in TEST()
1227 EXPECT_TRUE(matches(code, recordDecl(hasName("a::C")))); in TEST()
1229 matches(code, recordDecl(hasName("::a::(anonymous namespace)::C")))); in TEST()
1230 EXPECT_TRUE(matches(code, recordDecl(hasName("::a::C")))); in TEST()
1234 EXPECT_TRUE(matches("class A { class { class C; } x; };", in TEST()
1236 EXPECT_TRUE(matches("class A { class { class C; } x; };", in TEST()
1238 EXPECT_FALSE(matches("class A { class { class C; } x; };", in TEST()
1240 EXPECT_TRUE(matches("class A { struct { class C; } x; };", in TEST()
1242 EXPECT_TRUE(matches("class A { struct { class C; } x; };", in TEST()
1244 EXPECT_FALSE(matches("class A { struct { class C; } x; };", in TEST()
1251 EXPECT_TRUE(matches(code, varDecl(hasName("i")))); in TEST()
1252 EXPECT_FALSE(matches(code, varDecl(hasName("F()::i")))); in TEST()
1254 EXPECT_TRUE(matches(code, fieldDecl(hasName("m")))); in TEST()
1255 EXPECT_TRUE(matches(code, fieldDecl(hasName("S::m")))); in TEST()
1256 EXPECT_TRUE(matches(code, fieldDecl(hasName("F(int)::S::m")))); in TEST()
1257 EXPECT_TRUE(matches(code, fieldDecl(hasName("a::F(int)::S::m")))); in TEST()
1258 EXPECT_TRUE(matches(code, fieldDecl(hasName("::a::F(int)::S::m")))); in TEST()
1264 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("XX", "a::b::C")))); in TEST()
1265 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("a::b::C", "XX")))); in TEST()
1266 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("XX::C", "a::b::C")))); in TEST()
1267 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("XX", "C")))); in TEST()
1271 matches(Code, recordDecl(hasAnyName("::C", "::b::C", "::a::b::C")))); in TEST()
1274 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName(Names)))); in TEST()
1280 EXPECT_TRUE(matches("class A {};", DefinitionOfClassA)); in TEST()
1285 EXPECT_TRUE(matches("int a;", DefinitionOfVariableA)); in TEST()
1290 EXPECT_TRUE(matches("class A { void a() {} };", DefinitionOfMethodA)); in TEST()
1301 EXPECT_TRUE(matches( in TEST()
1321 EXPECT_TRUE(matches("void f() { }", in TEST()
1328 EXPECT_TRUE(matches("void f() { 1; }", in TEST()
1337 EXPECT_TRUE(matches("void f() { 1; 2; 3; }", in TEST()
1342 EXPECT_TRUE(matches("void f() { { 1; } { 1; 2; 3; 4; } }", in TEST()
1344 EXPECT_TRUE(matches("void f() { { 1; } { 1; 2; 3; 4; } }", in TEST()
1348 EXPECT_TRUE(matches("void f() { { 1; } { 1; 2; 3; 4; } }", in TEST()
1353 EXPECT_TRUE(matches("struct { int first; } s; int i(s.first);", in TEST()
1365 EXPECT_TRUE(matches("void f() {" in TEST()
1373 EXPECT_TRUE(matches( in TEST()
1382 EXPECT_TRUE(matches("class C { int a : 2; int b; };", in TEST()
1386 EXPECT_TRUE(matches("class C { int a : 2; int b : 4; };", in TEST()
1391 EXPECT_TRUE(matches( in TEST()
1402 EXPECT_TRUE(matches( in TEST()
1407 EXPECT_TRUE(matches("class A { protected: int i; };", in TEST()
1427 matches("void j() throw();", functionDecl(hasDynamicExceptionSpec()))); in TEST()
1429 matches("void k() throw(int);", functionDecl(hasDynamicExceptionSpec()))); in TEST()
1431 matches("void l() throw(...);", functionDecl(hasDynamicExceptionSpec()))); in TEST()
1441 matches("void j() throw();", functionProtoType(hasDynamicExceptionSpec()))); in TEST()
1443 matches("void k() throw(int);", functionProtoType(hasDynamicExceptionSpec()))); in TEST()
1445 matches("void l() throw(...);", functionProtoType(hasDynamicExceptionSpec()))); in TEST()
1455 EXPECT_TRUE(matches( in TEST()
1458 EXPECT_TRUE(matches( in TEST()
1466 EXPECT_TRUE(matches( in TEST()
1470 EXPECT_TRUE(matches( in TEST()
1484 EXPECT_TRUE(matches("class X { int m; };", fieldDecl(hasName("m")))); in TEST()
1488 EXPECT_TRUE(matches("volatile int i = 42;", in TEST()
1492 EXPECT_TRUE(matches("typedef volatile int v_int; v_int i = 42;", in TEST()
1497 EXPECT_TRUE(matches("const int i = 42;", in TEST()
1502 EXPECT_TRUE(matches("int i = 42; int* const p(&i);", in TEST()
1507 EXPECT_TRUE(matches("typedef const int const_int; const_int i = 42;", in TEST()
1509 EXPECT_TRUE(matches("typedef int* int_ptr; const int_ptr p(0);", in TEST()
1521 EXPECT_TRUE(matches("void f() {int i,j;}", in TEST()
1559 EXPECT_TRUE(matches( in TEST()
1563 EXPECT_TRUE(matches( in TEST()
1570 EXPECT_TRUE(matches( in TEST()
1577 EXPECT_TRUE(matches( in TEST()
1586 EXPECT_TRUE(matches( in TEST()
1594 EXPECT_TRUE(matches( in TEST()
1607 EXPECT_TRUE(matches( in TEST()
1631 matches("template<typename T> class A { T i; }; class Y { A<int> a; };", in TEST()
1641 EXPECT_TRUE(matches("template<typename T> struct A { A() { T i; } };" in TEST()
1653 matches("template<typename T> void A(T t) { T i; } void x() { A(0); }", in TEST()
1664 matches("template<typename T> void A(T t) { T i; } void x() { A(0); }", in TEST()
1680 EXPECT_TRUE(matches( in TEST()
1719 EXPECT_TRUE(matches( in TEST()
1723 EXPECT_TRUE(matches( in TEST()
1730 EXPECT_TRUE(matches("struct S { bool func(); };", in TEST()
1737 EXPECT_TRUE(matches("struct S { void func(); };", in TEST()
1742 EXPECT_TRUE(matches("struct S { float func(); };", in TEST()
1746 EXPECT_TRUE(matches("struct S { long double func(); };", in TEST()
1751 EXPECT_TRUE(matches("int a[] = {2,3};", arrayType())); in TEST()
1752 EXPECT_TRUE(matches("int a[42];", arrayType())); in TEST()
1753 EXPECT_TRUE(matches("void f(int b) { int a[b]; }", arrayType())); in TEST()
1758 EXPECT_TRUE(matches( in TEST()
1761 EXPECT_TRUE(matches( in TEST()
1764 EXPECT_TRUE(matches( in TEST()
1779 EXPECT_TRUE(matches("int a[2];", in TEST()
1781 EXPECT_TRUE(matches("const int a = 0;", qualType(isInteger()))); in TEST()
1785 …EXPECT_TRUE(matches("void f(int i[]);", valueDecl(hasType(decayedType(hasDecayedType(pointerType()… in TEST()
1790 EXPECT_TRUE(matches("_Complex float f;", complexType())); in TEST()
1791 EXPECT_TRUE(matches( in TEST()
1801 EXPECT_TRUE(matches("namespace {}", namespaceDecl(isAnonymous()))); in TEST()
1805 EXPECT_TRUE(matches( in TEST()
1824 matches("void f() { if(true) {} }", in TEST()
1834 EXPECT_TRUE(matches( in TEST()
1845 EXPECT_TRUE(matches( in TEST()
1908 EXPECT_FALSE(matches( in TEST()
1925 EXPECT_TRUE(matches("#define NULL ((void *)0)\n" in TEST()
1927 EXPECT_TRUE(matches("void *v2 = nullptr;", expr(nullPointerConstant()))); in TEST()
1928 EXPECT_TRUE(matches("void *v3 = __null;", expr(nullPointerConstant()))); in TEST()
1929 EXPECT_TRUE(matches("char *cp = (char *)0;", expr(nullPointerConstant()))); in TEST()
1930 EXPECT_TRUE(matches("int *ip = 0;", expr(nullPointerConstant()))); in TEST()