Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:notMatches

26     EXPECT_TRUE(notMatches("class X {};", HasEmptyName));
33 EXPECT_TRUE(notMatches("class X {};", HasEmptyName));
40 EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty));
59 EXPECT_TRUE(notMatches("", decl(usingDecl())));
74 EXPECT_TRUE(notMatches("#define X 1", NamedX));
87 EXPECT_TRUE(notMatches("#define Xkl 1", NamedX));
96 EXPECT_TRUE(notMatches("int cab;", Abc));
104 EXPECT_TRUE(notMatches("class C { int ckc; };", StartsWithK));
121 EXPECT_TRUE(notMatches("", ClassX));
128 EXPECT_TRUE(notMatches("class X {};", IsDerivedFromX));
129 EXPECT_TRUE(notMatches("class X;", IsDerivedFromX));
130 EXPECT_TRUE(notMatches("class Y;", IsDerivedFromX));
131 EXPECT_TRUE(notMatches("", IsDerivedFromX));
138 EXPECT_TRUE(notMatches("class Y;", IsAX));
139 EXPECT_TRUE(notMatches("", IsAX));
161 notMatches("template<class X> class A { class Z : public X {}; };",
171 notMatches("template<template<class T> class X> class A { "
179 notMatches("template<class X> class A { class Z : public X::D {}; };",
195 notMatches("template<class T> class X {}; "
204 notMatches("template<class X> class A { class Z : public X::D::E {}; };",
218 notMatches("template<class X> class D { typedef X A; typedef A B; "
237 notMatches("class Base {}; class Base2 {}; typedef Base2 X; "
243 notMatches("template <typename T> class Z;"
259 notMatches("template<int> struct X;"
286 EXPECT_TRUE(notMatches(
311 EXPECT_TRUE(notMatches(
323 EXPECT_TRUE(notMatches(
341 EXPECT_TRUE(notMatches("class A { void func(); };",
363 EXPECT_TRUE(notMatches(
399 EXPECT_TRUE(notMatches("void foo() {};", linkageSpecDecl()));
404 EXPECT_TRUE(notMatches("class X;", ClassX));
405 EXPECT_TRUE(notMatches("class X {};", ClassX));
415 EXPECT_TRUE(notMatches("template<typename T> class X { };"
422 EXPECT_TRUE(notMatches("template<typename T, typename U> class X { };"
463 notMatches("class X {}; class W : public X {};", YOrZDerivedFromX));
464 EXPECT_TRUE(notMatches("class Z {};", YOrZDerivedFromX));
469 EXPECT_TRUE(notMatches("class V {};", XOrYOrZOrU));
479 EXPECT_TRUE(notMatches("class A {};", XOrYOrZOrUOrV));
484 EXPECT_TRUE(notMatches("int F() { return 1; }", MixedTypes));
495 EXPECT_TRUE(notMatches("class X {};", YHasClassX));
497 notMatches("class Y { class Z { class X {}; }; };", YHasClassX));
594 EXPECT_TRUE(notMatches("", NotClassX));
595 EXPECT_TRUE(notMatches("class Y {};", NotClassX));
597 EXPECT_TRUE(notMatches("class Y {}; class X : public Y {};", NotClassX));
599 notMatches("class Y {}; class Z {}; class X : public Y {};",
609 EXPECT_TRUE(notMatches("class X { class Y {}; class Z {}; };",
615 EXPECT_TRUE(notMatches("struct Foo {};", NamedNotRecord));
632 EXPECT_TRUE(notMatches("class Z {};", ZDescendantClassX));
644 EXPECT_TRUE(notMatches(
689 EXPECT_TRUE(notMatches("void f() { int i; }",
691 EXPECT_TRUE(notMatches("void f() { int i; }",
800 EXPECT_TRUE(notMatches("void f() { float f = 2.0f; }",
828 EXPECT_TRUE(notMatches("int** i;",
840 EXPECT_TRUE(notMatches(
853 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X"))));
863 EXPECT_TRUE(notMatches("enum X{ B };", Matcher));
864 EXPECT_TRUE(notMatches("enum X {};", Matcher));
874 EXPECT_TRUE(notMatches(
886 EXPECT_TRUE(notMatches(
895 EXPECT_TRUE(notMatches("class A {};", TypeA));
901 EXPECT_TRUE(notMatches("class A {};", TypeA));
994 notMatches("class X {}; void y(X *x) { x; }",
1006 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX))));
1017 notMatches("class X {}; void y(X *x) { x; }",
1026 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX))));
1034 EXPECT_TRUE(notMatches("class X {}; X x;",
1044 EXPECT_TRUE(notMatches("class Y { void x() {} };", MethodX));
1056 notMatches("class Y { public: void x(); }; void z(Y *&y) { y->x(); }",
1059 notMatches("class Y { public: void x(); }; void z(Y y[]) { y->x(); }",
1062 notMatches("class Y { public: void x(); }; void z() { Y *y; y->x(); }",
1078 notMatches("class Y { public: void x(); }; void z() { Y y; y.x(); }",
1081 notMatches("class Y { public: void x(); }; void z(Y &y) { y.x(); }",
1094 EXPECT_TRUE(notMatches("void f() { for (int i; i<5; ++i); }",
1147 // EXPECT_TRUE(NotMatches("#include <stddef.h>\n"
1151 EXPECT_TRUE(notMatches("class Y { }; "
1160 EXPECT_TRUE(notMatches("bool x = true, y = true; bool t = x && y;", OpCall));
1161 EXPECT_TRUE(notMatches("int t = 5 << 2;", OpCall));
1172 EXPECT_TRUE(notMatches("class Y { }; "
1184 EXPECT_TRUE(notMatches("class Y { void myOperator(); };",
1256 EXPECT_TRUE(notMatches(
1269 EXPECT_TRUE(notMatches("int X;", M));
1270 EXPECT_TRUE(notMatches("void f() { static int X; }", M));
1273 EXPECT_TRUE(notMatches("void f() { int X; }", M));
1298 EXPECT_TRUE(notMatches(
1307 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }",
1312 // EXPECT_TRUE(notMatches("void x() { int a = alignof(a); }",
1319 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", sizeOfExpr(
1324 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", sizeOfExpr(
1329 EXPECT_TRUE(notMatches("class Y { void x() {} };", memberExpr()));
1348 EXPECT_TRUE(notMatches("class Y { void x() { y; } static int y; };",
1350 EXPECT_TRUE(notMatches("class Y { void x() { Y::y; } static int y; };",
1363 EXPECT_TRUE(notMatches("int *i;", varDecl(hasType(isInteger()))));
1364 EXPECT_TRUE(notMatches("struct T {}; T t; void f(T *) { }; void g() {f(&t);}",
1374 EXPECT_TRUE(notMatches("class Y { void x() { (*this).y; } int y; };",
1381 EXPECT_TRUE(notMatches("class Y { void x() { y; } static int y; };",
1383 EXPECT_TRUE(notMatches("class Y { void x() { (*this).y; } static int y; };",
1392 EXPECT_TRUE(notMatches("class Y { void x() { Y y; y.x(); } };",
1400 EXPECT_TRUE(notMatches("class Y { void x() {} };", CallMethodX));
1407 notMatches("class Y { void x() { this->x(); } };", callExpr(callee(callExpr()))));
1414 EXPECT_TRUE(notMatches("void f() { }", CallFunctionF));
1429 notMatches("void f(int); template <typename T> void g(T t) { f(t); }",
1432 notMatches("void f(int);"
1445 notMatches("void f(double d); void f(int t) {}",
1451 notMatches("void g(); template <typename T> void f(T t) {}"
1465 EXPECT_TRUE(notMatches("void x(int) { int z; x(z); }", CallArgumentY));
1469 EXPECT_TRUE(notMatches("void x(int) { int y; x(y); }", WrongIndex));
1477 EXPECT_TRUE(notMatches("void x(int, int) { x(1, 2); }", CallArgumentY));
1485 EXPECT_TRUE(notMatches("void x(int, int) { x(0, 0); }", Call1Arg));
1492 EXPECT_TRUE(notMatches("void f() {}", Function1Arg));
1493 EXPECT_TRUE(notMatches("void f(int i, int j, int k) {}", Function1Arg));
1508 notMatches("class X {}; extern X x;", ReferenceClassX));
1510 notMatches("class X {}; void y(X *y) { X *&x = y; }", ReferenceClassX));
1514 EXPECT_TRUE(notMatches("typedef int &int_ref;"
1526 EXPECT_TRUE(notMatches("typedef const int const_int; const_int i = 1;",
1532 EXPECT_TRUE(notMatches("int m;",
1539 EXPECT_TRUE(notMatches("class X { void x(int) {} };",
1544 EXPECT_TRUE(notMatches("class X { void x(int) {} };",
1551 EXPECT_TRUE(notMatches("class X { void x(const X &x) {} };",
1571 EXPECT_TRUE(notMatches("class Y { int f() { return 1; } };",
1582 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC())));
1587 notMatches("void Func();", functionDecl(hasName("Func"), isDeleted())));
1593 EXPECT_TRUE(notMatches("class Y {}; class X { void x(int) {} };",
1598 EXPECT_TRUE(notMatches("class Y {}; class X { void x() {} };",
1606 EXPECT_TRUE(notMatches("class Y {}; class X { void x(int) {} };",
1616 EXPECT_TRUE(notMatches("template<typename T> struct A {};",
1622 EXPECT_TRUE(notMatches("class A {};", declaratorDecl()));
1627 EXPECT_TRUE(notMatches("void f();", parmVarDecl()));
1646 EXPECT_TRUE(notMatches(
1659 EXPECT_TRUE(notMatches(
1672 EXPECT_TRUE(notMatches(
1683 EXPECT_TRUE(notMatches(
1704 notMatches("template<typename T> struct C {}; C<int> c;",
1710 notMatches("template<typename T> struct C {}; C<int> c;",
1718 EXPECT_TRUE(notMatches("template<typename T> struct C {}; C<int> c;",
1728 EXPECT_TRUE(notMatches("template<unsigned T> struct C {}; C<42> c;",
1743 EXPECT_TRUE(notMatches("template<int T> struct C {}; C<42> c;",
1753 notMatches("class C { public: int i; };", accessSpecDecl(isProtected())));
1755 notMatches("class C { public: int i; };", accessSpecDecl(isPrivate())));
1757 EXPECT_TRUE(notMatches("class C { int i; };", accessSpecDecl()));
1763 EXPECT_TRUE(notMatches("class X { int f(); };",
1770 EXPECT_TRUE(notMatches("class X { int f(); };",
1777 EXPECT_TRUE(notMatches("struct A { void foo(); };",
1785 EXPECT_TRUE(notMatches("class X { virtual int f(); }; "
1788 EXPECT_TRUE(notMatches("class X { int f(); }; "
1791 EXPECT_TRUE(notMatches("class X { int f(); int f(int); }; ",
1826 notMatches("class X { public: X(int); }; void x() { int z; X x(z); }",
1832 notMatches("class X { public: X(int); }; void x() { int y; X x(y); }",
1849 notMatches("class X { public: X(int, int); }; void x() { X x(0, 0); }",
1868 notMatches("struct X { int f () { int a; return a; } };", thisExpr()));
1884 notMatches(ClassString +
1895 notMatches("class no_dtor {};"
1914 notMatches(ClassString +
1925 notMatches(ClassString +
1931 notMatches(ClassString +
1940 EXPECT_TRUE(notMatches("class Foo { Foo(int i); };",
1947 EXPECT_TRUE(notMatches("class Foo { };",
1965 EXPECT_TRUE(notMatches("class Foo {};",
1970 EXPECT_TRUE(notMatches(
1993 EXPECT_TRUE(notMatches(Code, constructorDecl(hasAnyConstructorInitializer(
2005 EXPECT_TRUE(notMatches(Code, constructorDecl(hasAnyConstructorInitializer(
2019 EXPECT_TRUE(notMatches(Code, constructorDecl(hasAnyConstructorInitializer(
2047 notMatches("class X { public: X(int); }; void x() { int z; new X(z); }",
2053 notMatches("class X { public: X(int); }; void x() { int y; new X(y); }",
2063 notMatches("class X { public: X(int, int); }; void x() { new X(0, 0); }",
2078 EXPECT_TRUE(notMatches("void x(int, int = 0) { int y; x(y, 0); }", Arg));
2089 EXPECT_TRUE(notMatches("const char s[1] = {'a'};", Literal));
2098 EXPECT_TRUE(notMatches("const wchar_t c = 0x2126;", CharLiteral));
2099 EXPECT_TRUE(notMatches("const char c = 0x1;", CharLiteral));
2110 EXPECT_TRUE(notMatches("int i = L'a';",
2113 EXPECT_TRUE(notMatches("int i = 'a';", HasIntLiteral));
2114 EXPECT_TRUE(notMatches("int i = 1e10;", HasIntLiteral));
2115 EXPECT_TRUE(notMatches("int i = 10.0;", HasIntLiteral));
2130 EXPECT_TRUE(notMatches("float i = 10;", HasFloatLiteral));
2131 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0))));
2132 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f))));
2134 notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0)))));
2149 EXPECT_TRUE(notMatches("void x() { if (false) {} }", Condition));
2150 EXPECT_TRUE(notMatches("void x() { bool a = true; if (a) {} }", Condition));
2151 EXPECT_TRUE(notMatches("void x() { if (true || false) {} }", Condition));
2152 EXPECT_TRUE(notMatches("void x() { if (1) {} }", Condition));
2158 EXPECT_TRUE(notMatches("void f() { if (false) false; else true; }",
2162 EXPECT_TRUE(notMatches("void f() { if (false) true; else false; }",
2170 EXPECT_TRUE(notMatches("void x() { true && false; }", OperatorOr));
2180 EXPECT_TRUE(notMatches("void x() { false || true; }", OperatorTrueFalse));
2189 EXPECT_TRUE(notMatches("void x() { true || true; }", HasOperand));
2276 notMatches("struct A { void x(A *a) { a->x(this); } };",
2281 notMatches("bool b = true;", binaryOperator(hasOperatorName("="))));
2284 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator()));
2287 EXPECT_TRUE(notMatches(
2297 EXPECT_TRUE(notMatches("void x() { true; } ", OperatorNot));
2305 EXPECT_TRUE(notMatches("void x() { !true; }", OperatorOnFalse));
2331 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator()));
2334 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator()));
2338 EXPECT_TRUE(notMatches(
2349 EXPECT_TRUE(notMatches("void x() { false ? false : true; }", Conditional));
2350 EXPECT_TRUE(notMatches("void x() { true ? true : false; }", Conditional));
2357 notMatches("void x() { true ? false : true; }", ConditionalFalse));
2363 EXPECT_TRUE(notMatches("int i; void f() { i = 1; }",
2374 EXPECT_TRUE(notMatches(
2395 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2397 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2399 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2401 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2403 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2405 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2407 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }",
2409 EXPECT_TRUE(notMatches("namespace a { namespace b { class AC; } }",
2427 notMatches("class A { class B { class C; }; };",
2430 notMatches("class A { class B { class C; }; };",
2433 notMatches("class A { class B { class C; }; };",
2436 notMatches("class A { class B { class C; }; };",
2439 notMatches("class A { class B { class C; }; };",
2441 EXPECT_TRUE(notMatches("class A { class B { class C; }; };",
2444 notMatches("class A { class B { class C; }; };",
2452 EXPECT_TRUE(notMatches("class A;", DefinitionOfClassA));
2457 EXPECT_TRUE(notMatches("extern int a;", DefinitionOfVariableA));
2462 EXPECT_TRUE(notMatches("class A { void a(); };", DefinitionOfMethodA));
2475 notMatches("class Y { public: Y(); }; void x(int) { Y y; }",
2575 EXPECT_TRUE(notMatches("int as[] = { 1, 2, 3 };"
2596 EXPECT_TRUE(notMatches("void f(){ for (int i = 0; ; ++i); }",
2598 EXPECT_TRUE(notMatches("void f() {int i; for (; i < 4; ++i) {} }",
2603 EXPECT_TRUE(notMatches("void f() { ; }", forStmt()));
2604 EXPECT_TRUE(notMatches("void f() { if(true); }", forStmt()));
2608 EXPECT_TRUE(notMatches("void f();", compoundStmt()));
2616 EXPECT_TRUE(notMatches("namespace n { struct S {}; }",
2625 EXPECT_TRUE(notMatches("void f() { for(;;); }",
2645 EXPECT_TRUE(notMatches("void f() { if (true) for (;;); }",
2662 EXPECT_TRUE(notMatches("void f() {}",
2669 EXPECT_TRUE(notMatches("void f() { 1; }",
2671 EXPECT_TRUE(notMatches("void f() { 1; }",
2685 EXPECT_TRUE(notMatches("void f() { { 1; } { 1; 2; 3; 4; } }",
2699 EXPECT_TRUE(notMatches("struct { int i; } first; int i(first.i);",
2715 EXPECT_TRUE(notMatches(
2723 EXPECT_TRUE(notMatches(
2725 EXPECT_TRUE(notMatches(
2728 EXPECT_TRUE(notMatches(
2730 EXPECT_TRUE(notMatches(
2735 EXPECT_TRUE(notMatches(
2739 EXPECT_TRUE(notMatches(
2743 EXPECT_TRUE(notMatches("int i;", varDecl(isPublic(), hasName("i"))));
2744 EXPECT_TRUE(notMatches("int i;", varDecl(isProtected(), hasName("i"))));
2745 EXPECT_TRUE(notMatches("int i;", varDecl(isPrivate(), hasName("i"))));
2766 EXPECT_TRUE(notMatches(
2794 EXPECT_TRUE(notMatches("class X { void m(); };", fieldDecl(hasName("m"))));
2795 EXPECT_TRUE(notMatches("class X { class m {}; };", fieldDecl(hasName("m"))));
2796 EXPECT_TRUE(notMatches("class X { enum { m }; };", fieldDecl(hasName("m"))));
2797 EXPECT_TRUE(notMatches("class X { enum m {}; };", fieldDecl(hasName("m"))));
2822 EXPECT_TRUE(notMatches("typedef int nonconst_int; nonconst_int i = 42;",
2824 EXPECT_TRUE(notMatches("int const* p;",
2842 EXPECT_TRUE(notMatches("char c = '0';", castExpr()));
2843 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr()));
2844 EXPECT_TRUE(notMatches("int i = (0);", castExpr()));
2845 EXPECT_TRUE(notMatches("int i = 0;", castExpr()));
2854 EXPECT_TRUE(notMatches("char* p = (char*)(&p);", reinterpretCastExpr()));
2855 EXPECT_TRUE(notMatches("char q, *p = const_cast<char*>(&q);",
2857 EXPECT_TRUE(notMatches("void* p = static_cast<void*>(&p);",
2859 EXPECT_TRUE(notMatches("struct B { virtual ~B() {} }; struct D : B {};"
2874 notMatches(FooClass + "void r() { Foo f = (Foo) \"hello world\"; }",
2877 notMatches(FooClass + "void r() { Foo f = \"hello world\"; }",
2894 EXPECT_TRUE(notMatches("char* p = (char*)(&p);", staticCastExpr()));
2895 EXPECT_TRUE(notMatches("char q, *p = const_cast<char*>(&q);",
2897 EXPECT_TRUE(notMatches("void* p = reinterpret_cast<char*>(&p);",
2899 EXPECT_TRUE(notMatches("struct B { virtual ~B() {} }; struct D : B {};"
2910 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);"
2938 EXPECT_TRUE(notMatches("char c = 0;",
2942 EXPECT_TRUE(notMatches
2964 EXPECT_TRUE(notMatches("int x = 0;",
2966 EXPECT_TRUE(notMatches("int x = 0, &y = x;",
2969 EXPECT_TRUE(notMatches("int x = 0; double d = (double) x;",
2971 EXPECT_TRUE(notMatches("const int *p; int *q = const_cast<int *>(p);",
2974 EXPECT_TRUE(notMatches("int x = (0);",
2995 EXPECT_TRUE(notMatches("int x; const int y = x;",
2998 EXPECT_TRUE(notMatches("int x; int y = x;",
3004 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);",
3007 EXPECT_TRUE(notMatches("int i = (0);",
3010 EXPECT_TRUE(notMatches("float i = (float)0;",
3013 EXPECT_TRUE(notMatches("float i = float(0);",
3060 EXPECT_TRUE(notMatches("int x = ((0));",
3066 EXPECT_TRUE(notMatches("char x = ((0));",
3070 EXPECT_TRUE(notMatches("char *x = static_cast<char *>((0));",
3104 EXPECT_TRUE(notMatches("char c = ((3));",
3109 EXPECT_TRUE(notMatches("float y = (float(0));",
3112 EXPECT_TRUE(notMatches("float y = (float)0;",
3115 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);",
3135 EXPECT_TRUE(notMatches("class X {};", stmt()));
3143 EXPECT_TRUE(notMatches("void x() {}", declStmt()));
3186 EXPECT_TRUE(notMatches("namespace f { int a; void b(); } using f::a;",
3195 EXPECT_TRUE(notMatches(
3211 EXPECT_TRUE(notMatches("void f() {int a;}", SingleDeclStmt));
3212 EXPECT_TRUE(notMatches("void f() {int a = 4, b = 3;}",
3225 EXPECT_TRUE(notMatches("void f() {int a = 4, b = 3;}",
3233 EXPECT_TRUE(notMatches("void f() {int i,j; int k;}",
3235 EXPECT_TRUE(notMatches("void f() {int i,j, k, l;}",
3240 EXPECT_TRUE(notMatches("void x() {}", whileStmt()));
3242 EXPECT_TRUE(notMatches("void x() { do {} while(true); }", whileStmt()));
3251 EXPECT_TRUE(notMatches("void x() { while(true) {} }", doStmt()));
3258 EXPECT_TRUE(notMatches("void x() { switch(42) {} }", switchCase()));
3265 EXPECT_TRUE(notMatches("void x() {}", switchStmt()));
3269 EXPECT_TRUE(notMatches("void x() { switch(42); }",
3275 EXPECT_TRUE(notMatches(
3281 EXPECT_TRUE(notMatches("void x() { switch(42) { case 1+1: case 2+2:; } }",
3284 EXPECT_TRUE(notMatches("void x() { switch(42) { case 1 ... 2:; } }",
3302 EXPECT_TRUE(notMatches("void foo() try { } catch(int X) { }", throwExpr()));
3310 notMatches(
3313 EXPECT_TRUE(notMatches(
3554 EXPECT_TRUE(notMatches(
3622 EXPECT_TRUE(notMatches(
3629 EXPECT_TRUE(notMatches(
3641 EXPECT_TRUE(notMatches("template<typename T> class A { T i; };",
3652 EXPECT_TRUE(notMatches("template<typename T> struct A { void x() { T i; } };",
3663 EXPECT_TRUE(notMatches("template<typename T> void A(T t) { T i; }",
3674 EXPECT_TRUE(notMatches("template<typename T> void A(T t) { T i; }",
3682 EXPECT_TRUE(notMatches(
3692 EXPECT_TRUE(notMatches(
3695 EXPECT_TRUE(notMatches(
3702 EXPECT_TRUE(notMatches(
3706 EXPECT_TRUE(notMatches(
3714 EXPECT_TRUE(notMatches(
3717 EXPECT_TRUE(notMatches(
3741 EXPECT_TRUE(notMatches(
3818 EXPECT_TRUE(notMatches(
3821 EXPECT_TRUE(notMatches(
3861 notMatches("template <typename T> struct C { static void f() {} };"
3901 EXPECT_TRUE(notMatches("struct A {}; A a[7];",
3914 EXPECT_TRUE(notMatches(
3917 EXPECT_TRUE(notMatches(
3920 EXPECT_TRUE(notMatches(
3935 EXPECT_TRUE(notMatches(
3942 EXPECT_TRUE(notMatches(
3948 EXPECT_TRUE(notMatches("int c[41], d[43];", constantArrayType(hasSize(42))));
3955 EXPECT_TRUE(notMatches(
3964 EXPECT_TRUE(notMatches("int a[42]; void f() { int b[a[0]]; }",
3970 EXPECT_TRUE(notMatches("int a[] = {2, 3}; int b[42];", variableArrayType()));
3986 EXPECT_TRUE(notMatches("_Atomic(float) f;",
4000 //EXPECT_TRUE(notMatches("auto b = 2.0;",
4012 EXPECT_TRUE(notMatches("int *array[4];", varDecl(hasType(parenType()))));
4017 EXPECT_TRUE(notMatches(
4045 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4049 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4051 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4053 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4055 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4059 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4061 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4065 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"),
4069 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4071 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4073 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4079 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4083 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4085 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4087 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4091 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"),
4103 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("a"),
4105 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("b"),
4111 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("c"),
4117 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("d"),
4121 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("e"),
4138 EXPECT_TRUE(notMatches(
4170 EXPECT_TRUE(notMatches("int i;",
4183 EXPECT_TRUE(notMatches("class C {}; C c;", elaboratedType()));
4195 EXPECT_TRUE(notMatches(
4201 EXPECT_TRUE(notMatches(
4217 EXPECT_TRUE(notMatches(
4236 EXPECT_TRUE(notMatches(
4243 EXPECT_TRUE(notMatches("void f() {int i;}", nullStmt()));
4252 EXPECT_TRUE(notMatches("namespace A { struct B {}; } A::B b;", Matcher));
4259 EXPECT_TRUE(notMatches("namespace xx { struct A {}; } xx::A a;", Matcher));
4260 EXPECT_TRUE(notMatches("struct ns { struct A {}; }; ns::A a;", Matcher));
4296 EXPECT_TRUE(notMatches(
4341 EXPECT_TRUE(notMatches(
4545 EXPECT_TRUE(notMatches("int i = 1.f;",
4552 EXPECT_TRUE(notMatches(
4564 EXPECT_TRUE(notMatches(
4575 EXPECT_TRUE(notMatches("class X { class Y {}; };",
4587 EXPECT_TRUE(notMatches(
4671 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInMainFile())));
4688 EXPECT_TRUE(notMatches("class X {};",
4690 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInSystemHeader())));