Lines Matching refs:notMatches
26 EXPECT_TRUE(notMatches("class X {};", HasEmptyName)); in TEST()
33 EXPECT_TRUE(notMatches("class X {};", HasEmptyName)); in TEST()
40 EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty)); in TEST()
59 EXPECT_TRUE(notMatches("", decl(usingDecl()))); in TEST()
74 EXPECT_TRUE(notMatches("#define X 1", NamedX)); in TEST()
87 EXPECT_TRUE(notMatches("#define Xkl 1", NamedX)); in TEST()
96 EXPECT_TRUE(notMatches("int cab;", Abc)); in TEST()
104 EXPECT_TRUE(notMatches("class C { int ckc; };", StartsWithK)); in TEST()
121 EXPECT_TRUE(notMatches("", ClassX)); in TEST()
128 EXPECT_TRUE(notMatches("class X {};", IsDerivedFromX)); in TEST()
129 EXPECT_TRUE(notMatches("class X;", IsDerivedFromX)); in TEST()
130 EXPECT_TRUE(notMatches("class Y;", IsDerivedFromX)); in TEST()
131 EXPECT_TRUE(notMatches("", IsDerivedFromX)); in TEST()
138 EXPECT_TRUE(notMatches("class Y;", IsAX)); in TEST()
139 EXPECT_TRUE(notMatches("", IsAX)); in TEST()
161 notMatches("template<class X> class A { class Z : public X {}; };", in TEST()
171 notMatches("template<template<class T> class X> class A { " in TEST()
179 notMatches("template<class X> class A { class Z : public X::D {}; };", in TEST()
195 notMatches("template<class T> class X {}; " in TEST()
204 notMatches("template<class X> class A { class Z : public X::D::E {}; };", in TEST()
218 notMatches("template<class X> class D { typedef X A; typedef A B; " in TEST()
237 notMatches("class Base {}; class Base2 {}; typedef Base2 X; " in TEST()
243 notMatches("template <typename T> class Z;" in TEST()
259 notMatches("template<int> struct X;" in TEST()
286 EXPECT_TRUE(notMatches( in TEST()
311 EXPECT_TRUE(notMatches( in TEST()
323 EXPECT_TRUE(notMatches( in TEST()
341 EXPECT_TRUE(notMatches("class A { void func(); };", in TEST()
363 EXPECT_TRUE(notMatches( in TEST()
399 EXPECT_TRUE(notMatches("void foo() {};", linkageSpecDecl())); in TEST()
404 EXPECT_TRUE(notMatches("class X;", ClassX)); in TEST()
405 EXPECT_TRUE(notMatches("class X {};", ClassX)); in TEST()
415 EXPECT_TRUE(notMatches("template<typename T> class X { };" in TEST()
422 EXPECT_TRUE(notMatches("template<typename T, typename U> class X { };" in TEST()
472 notMatches("class X {}; class W : public X {};", YOrZDerivedFromX)); in TEST()
473 EXPECT_TRUE(notMatches("class Z {};", YOrZDerivedFromX)); in TEST()
478 EXPECT_TRUE(notMatches("class V {};", XOrYOrZOrU)); in TEST()
488 EXPECT_TRUE(notMatches("class A {};", XOrYOrZOrUOrV)); in TEST()
493 EXPECT_TRUE(notMatches("int F() { return 1; }", MixedTypes)); in TEST()
508 EXPECT_TRUE(notMatches("class X {};", YHasClassX)); in TEST()
510 notMatches("class Y { class Z { class X {}; }; };", YHasClassX)); in TEST()
607 EXPECT_TRUE(notMatches("", NotClassX)); in TEST()
608 EXPECT_TRUE(notMatches("class Y {};", NotClassX)); in TEST()
610 EXPECT_TRUE(notMatches("class Y {}; class X : public Y {};", NotClassX)); in TEST()
612 notMatches("class Y {}; class Z {}; class X : public Y {};", in TEST()
622 EXPECT_TRUE(notMatches("class X { class Y {}; class Z {}; };", in TEST()
628 EXPECT_TRUE(notMatches("struct Foo {};", NamedNotRecord)); in TEST()
645 EXPECT_TRUE(notMatches("class Z {};", ZDescendantClassX)); in TEST()
657 EXPECT_TRUE(notMatches( in TEST()
702 EXPECT_TRUE(notMatches("void f() { int i; }", in TEST()
704 EXPECT_TRUE(notMatches("void f() { int i; }", in TEST()
813 EXPECT_TRUE(notMatches("void f() { float f = 2.0f; }", in TEST()
841 EXPECT_TRUE(notMatches("int** i;", in TEST()
853 EXPECT_TRUE(notMatches( in TEST()
866 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X")))); in TEST()
876 EXPECT_TRUE(notMatches("enum X{ B };", Matcher)); in TEST()
877 EXPECT_TRUE(notMatches("enum X {};", Matcher)); in TEST()
887 EXPECT_TRUE(notMatches( in TEST()
899 EXPECT_TRUE(notMatches( in TEST()
908 EXPECT_TRUE(notMatches("class A {};", TypeA)); in TEST()
915 EXPECT_TRUE(notMatches("class A {};", TypeA)); in TEST()
949 EXPECT_TRUE(notMatches("template <typename T> struct S {" in TEST()
1059 notMatches("class X {}; void y(X *x) { x; }", in TEST()
1071 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX)))); in TEST()
1082 notMatches("class X {}; void y(X *x) { x; }", in TEST()
1091 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX)))); in TEST()
1099 EXPECT_TRUE(notMatches("class X {}; X x;", in TEST()
1110 EXPECT_TRUE(notMatches("class Y { void x() {} };", MethodX)); in TEST()
1122 notMatches("class Y { public: void x(); }; void z(Y *&y) { y->x(); }", in TEST()
1125 notMatches("class Y { public: void x(); }; void z(Y y[]) { y->x(); }", in TEST()
1128 notMatches("class Y { public: void x(); }; void z() { Y *y; y->x(); }", in TEST()
1144 notMatches("class Y { public: void x(); }; void z() { Y y; y.x(); }", in TEST()
1147 notMatches("class Y { public: void x(); }; void z(Y &y) { y.x(); }", in TEST()
1160 EXPECT_TRUE(notMatches("void f() { for (int i; i<5; ++i); }", in TEST()
1179 notMatches("template <typename T> void f();", nonTypeTemplateParmDecl())); in TEST()
1186 notMatches("template <int N> void f();", templateTypeParmDecl())); in TEST()
1232 EXPECT_TRUE(notMatches("class Y { }; " in TEST()
1241 EXPECT_TRUE(notMatches("bool x = true, y = true; bool t = x && y;", OpCall)); in TEST()
1242 EXPECT_TRUE(notMatches("int t = 5 << 2;", OpCall)); in TEST()
1253 EXPECT_TRUE(notMatches("class Y { }; " in TEST()
1265 EXPECT_TRUE(notMatches("class Y { void myOperator(); };", in TEST()
1336 EXPECT_TRUE(notMatches( in TEST()
1349 EXPECT_TRUE(notMatches("int X;", M)); in TEST()
1350 EXPECT_TRUE(notMatches("void f() { static int X; }", M)); in TEST()
1353 EXPECT_TRUE(notMatches("void f() { int X; }", M)); in TEST()
1364 notMatches(T, varDecl(hasName("y"), hasAutomaticStorageDuration()))); in TEST()
1366 notMatches(T, varDecl(hasName("a"), hasAutomaticStorageDuration()))); in TEST()
1370 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasStaticStorageDuration()))); in TEST()
1376 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasThreadStorageDuration()))); in TEST()
1377 EXPECT_TRUE(notMatches(T, varDecl(hasName("y"), hasThreadStorageDuration()))); in TEST()
1378 EXPECT_TRUE(notMatches(T, varDecl(hasName("a"), hasThreadStorageDuration()))); in TEST()
1401 EXPECT_TRUE(notMatches( in TEST()
1410 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", in TEST()
1422 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", sizeOfExpr( in TEST()
1427 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", sizeOfExpr( in TEST()
1432 EXPECT_TRUE(notMatches("class Y { void x() {} };", memberExpr())); in TEST()
1451 EXPECT_TRUE(notMatches("class Y { void x() { y; } static int y; };", in TEST()
1453 EXPECT_TRUE(notMatches("class Y { void x() { Y::y; } static int y; };", in TEST()
1466 EXPECT_TRUE(notMatches("int *i;", varDecl(hasType(isInteger())))); in TEST()
1467 EXPECT_TRUE(notMatches("struct T {}; T t; void f(T *) { }; void g() {f(&t);}", in TEST()
1477 EXPECT_TRUE(notMatches("int i;", varDecl(hasType(isAnyCharacter())))); in TEST()
1485 EXPECT_TRUE(notMatches("class Y { void x() { (*this).y; } int y; };", in TEST()
1492 EXPECT_TRUE(notMatches("class Y { void x() { y; } static int y; };", in TEST()
1494 EXPECT_TRUE(notMatches("class Y { void x() { (*this).y; } static int y; };", in TEST()
1503 EXPECT_TRUE(notMatches("class Y { void x() { Y y; y.x(); } };", in TEST()
1511 EXPECT_TRUE(notMatches("class Y { void x() {} };", CallMethodX)); in TEST()
1516 EXPECT_TRUE(notMatches("struct Y { operator int() const; }; Y y = Y();", in TEST()
1523 EXPECT_TRUE(notMatches("struct S { operator int(); };", in TEST()
1531 notMatches("class Y { void x() { this->x(); } };", callExpr(callee(callExpr())))); in TEST()
1538 EXPECT_TRUE(notMatches("void f() { }", CallFunctionF)); in TEST()
1553 notMatches("void f(int); template <typename T> void g(T t) { f(t); }", in TEST()
1556 notMatches("void f(int);" in TEST()
1561 EXPECT_TRUE(notMatches("void f(int);", functionDecl(isVariadic()))); in TEST()
1562 EXPECT_TRUE(notMatches("template <typename... Ts> void f(Ts...);", in TEST()
1564 EXPECT_TRUE(notMatches("void f();", functionDecl(isVariadic()))); in TEST()
1576 notMatches("void f(double d); void f(int t) {}", in TEST()
1582 notMatches("void g(); template <typename T> void f(T t) {}" in TEST()
1596 EXPECT_TRUE(notMatches("void x(int) { int z; x(z); }", CallArgumentY)); in TEST()
1600 EXPECT_TRUE(notMatches("void x(int) { int y; x(y); }", WrongIndex)); in TEST()
1608 EXPECT_TRUE(notMatches("void x(int, int) { x(1, 2); }", CallArgumentY)); in TEST()
1616 EXPECT_TRUE(notMatches("void x(int, int) { x(0, 0); }", Call1Arg)); in TEST()
1623 EXPECT_TRUE(notMatches("void f() {}", Function1Arg)); in TEST()
1624 EXPECT_TRUE(notMatches("void f(int i, int j, int k) {}", Function1Arg)); in TEST()
1639 notMatches("class X {}; extern X x;", ReferenceClassX)); in TEST()
1641 notMatches("class X {}; void y(X *y) { X *&x = y; }", ReferenceClassX)); in TEST()
1645 EXPECT_TRUE(notMatches("typedef int &int_ref;" in TEST()
1657 EXPECT_TRUE(notMatches("typedef const int const_int; const_int i = 1;", in TEST()
1663 EXPECT_TRUE(notMatches("int m;", in TEST()
1670 EXPECT_TRUE(notMatches("class X { void x(int) {} };", in TEST()
1675 EXPECT_TRUE(notMatches("class X { void x(int) {} };", in TEST()
1683 EXPECT_TRUE(notMatches( in TEST()
1706 EXPECT_TRUE(notMatches("class Y { int f() { return 1; } };", in TEST()
1717 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC()))); in TEST()
1722 notMatches("void Func();", functionDecl(hasName("Func"), isDeleted()))); in TEST()
1728 EXPECT_TRUE(notMatches("void f();", functionDecl(isNoThrow()))); in TEST()
1729 EXPECT_TRUE(notMatches("void f() throw(int);", functionDecl(isNoThrow()))); in TEST()
1731 notMatches("void f() noexcept(false);", functionDecl(isNoThrow()))); in TEST()
1744 EXPECT_TRUE(notMatches( in TEST()
1750 EXPECT_TRUE(notMatches("class Y {}; class X { void x() {} };", in TEST()
1758 EXPECT_TRUE(notMatches("class Y {}; class X { void x(int) {} };", in TEST()
1768 EXPECT_TRUE(notMatches("template<typename T> struct A {};", in TEST()
1774 EXPECT_TRUE(notMatches("class A {};", declaratorDecl())); in TEST()
1779 EXPECT_TRUE(notMatches("void f();", parmVarDecl())); in TEST()
1798 EXPECT_TRUE(notMatches( in TEST()
1811 EXPECT_TRUE(notMatches( in TEST()
1824 EXPECT_TRUE(notMatches( in TEST()
1835 EXPECT_TRUE(notMatches( in TEST()
1856 notMatches("template<typename T> struct C {}; C<int> c;", in TEST()
1862 notMatches("template<typename T> struct C {}; C<int> c;", in TEST()
1870 EXPECT_TRUE(notMatches("template<typename T> struct C {}; C<int> c;", in TEST()
1880 EXPECT_TRUE(notMatches("template<unsigned T> struct C {}; C<42> c;", in TEST()
1895 EXPECT_TRUE(notMatches("template<int T> struct C {}; C<42> c;", in TEST()
1905 notMatches("class C { public: int i; };", accessSpecDecl(isProtected()))); in TEST()
1907 notMatches("class C { public: int i; };", accessSpecDecl(isPrivate()))); in TEST()
1909 EXPECT_TRUE(notMatches("class C { int i; };", accessSpecDecl())); in TEST()
1916 EXPECT_TRUE(notMatches("class X {};", cxxRecordDecl(isFinal()))); in TEST()
1918 notMatches("class X { virtual void f(); };", cxxMethodDecl(isFinal()))); in TEST()
1924 EXPECT_TRUE(notMatches("class X { int f(); };", cxxMethodDecl(isVirtual()))); in TEST()
1930 EXPECT_TRUE(notMatches("class X { int f(); };", cxxMethodDecl(isPure()))); in TEST()
1944 EXPECT_TRUE(notMatches("class X { X &operator=(X &&); };", in TEST()
1952 notMatches("struct A { void foo(); };", cxxMethodDecl(isConst()))); in TEST()
1959 EXPECT_TRUE(notMatches("class X { virtual int f(); }; " in TEST()
1962 EXPECT_TRUE(notMatches("class X { int f(); }; " in TEST()
1965 EXPECT_TRUE(notMatches("class X { int f(); int f(int); }; ", in TEST()
2000 notMatches("class X { public: X(int); }; void x() { int z; X x(z); }", in TEST()
2006 notMatches("class X { public: X(int); }; void x() { int y; X x(y); }", in TEST()
2023 notMatches("class X { public: X(int, int); }; void x() { X x(0, 0); }", in TEST()
2043 notMatches("struct X { int f () { int a; return a; } };", cxxThisExpr())); in TEST()
2059 notMatches(ClassString + in TEST()
2070 notMatches("class no_dtor {};" in TEST()
2089 notMatches(ClassString + in TEST()
2100 notMatches(ClassString + in TEST()
2106 notMatches(ClassString + in TEST()
2115 EXPECT_TRUE(notMatches("class Foo { Foo(int i); };", in TEST()
2122 EXPECT_TRUE(notMatches("class Foo { };", in TEST()
2137 EXPECT_TRUE(notMatches("struct S { S(int); };", in TEST()
2144 EXPECT_TRUE(notMatches("struct S { S(); };", in TEST()
2146 EXPECT_TRUE(notMatches("struct S { S(); };", in TEST()
2149 EXPECT_TRUE(notMatches("struct S { S(const S&); };", in TEST()
2153 EXPECT_TRUE(notMatches("struct S { S(const S&); };", in TEST()
2156 EXPECT_TRUE(notMatches("struct S { S(S&&); };", in TEST()
2158 EXPECT_TRUE(notMatches("struct S { S(S&&); };", in TEST()
2170 EXPECT_TRUE(notMatches("class Foo {};", in TEST()
2176 notMatches("class Foo { Foo() { } };", in TEST()
2198 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer( in TEST()
2210 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer( in TEST()
2224 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer( in TEST()
2243 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf( in TEST()
2249 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf( in TEST()
2276 notMatches("class X { public: X(int); }; void x() { int z; new X(z); }", in TEST()
2282 notMatches("class X { public: X(int); }; void x() { int y; new X(y); }", in TEST()
2292 notMatches("class X { public: X(int, int); }; void x() { new X(0, 0); }", in TEST()
2307 EXPECT_TRUE(notMatches("void x(int, int = 0) { int y; x(y, 0); }", Arg)); in TEST()
2318 EXPECT_TRUE(notMatches("const char s[1] = {'a'};", Literal)); in TEST()
2327 EXPECT_TRUE(notMatches("const wchar_t c = 0x2126;", CharLiteral)); in TEST()
2328 EXPECT_TRUE(notMatches("const char c = 0x1;", CharLiteral)); in TEST()
2339 EXPECT_TRUE(notMatches("int i = L'a';", in TEST()
2342 EXPECT_TRUE(notMatches("int i = 'a';", HasIntLiteral)); in TEST()
2343 EXPECT_TRUE(notMatches("int i = 1e10;", HasIntLiteral)); in TEST()
2344 EXPECT_TRUE(notMatches("int i = 10.0;", HasIntLiteral)); in TEST()
2359 EXPECT_TRUE(notMatches("float i = 10;", HasFloatLiteral)); in TEST()
2360 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0)))); in TEST()
2361 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f)))); in TEST()
2363 notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0))))); in TEST()
2383 EXPECT_TRUE(notMatches("void x() { if (false) {} }", Condition)); in TEST()
2384 EXPECT_TRUE(notMatches("void x() { bool a = true; if (a) {} }", Condition)); in TEST()
2385 EXPECT_TRUE(notMatches("void x() { if (true || false) {} }", Condition)); in TEST()
2386 EXPECT_TRUE(notMatches("void x() { if (1) {} }", Condition)); in TEST()
2392 EXPECT_TRUE(notMatches("void f() { if (false) false; else true; }", in TEST()
2396 EXPECT_TRUE(notMatches("void f() { if (false) true; else false; }", in TEST()
2404 EXPECT_TRUE(notMatches("void x() { true && false; }", OperatorOr)); in TEST()
2414 EXPECT_TRUE(notMatches("void x() { false || true; }", OperatorTrueFalse)); in TEST()
2419 EXPECT_TRUE(notMatches("void x() { \"abc\"[1]; }", OperatorIntPointer)); in TEST()
2428 EXPECT_TRUE(notMatches("void x() { true || true; }", HasOperand)); in TEST()
2515 notMatches("struct A { void x(A *a) { a->x(this); } };", in TEST()
2520 notMatches("bool b = true;", binaryOperator(hasOperatorName("=")))); in TEST()
2523 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST()
2526 EXPECT_TRUE(notMatches( in TEST()
2536 EXPECT_TRUE(notMatches("void x() { true; } ", OperatorNot)); in TEST()
2544 EXPECT_TRUE(notMatches("void x() { !true; }", OperatorOnFalse)); in TEST()
2570 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator())); in TEST()
2573 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator())); in TEST()
2577 EXPECT_TRUE(notMatches( in TEST()
2588 EXPECT_TRUE(notMatches("void x() { false ? false : true; }", Conditional)); in TEST()
2589 EXPECT_TRUE(notMatches("void x() { true ? true : false; }", Conditional)); in TEST()
2596 notMatches("void x() { true ? false : true; }", ConditionalFalse)); in TEST()
2602 EXPECT_TRUE(notMatches("int i; void f() { i = 1; }", in TEST()
2613 EXPECT_TRUE(notMatches( in TEST()
2634 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2636 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2638 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2640 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2642 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2644 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2646 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
2648 EXPECT_TRUE(notMatches("namespace a { namespace b { class AC; } }", in TEST()
2666 notMatches("class A { class B { class C; }; };", in TEST()
2669 notMatches("class A { class B { class C; }; };", in TEST()
2672 notMatches("class A { class B { class C; }; };", in TEST()
2675 notMatches("class A { class B { class C; }; };", in TEST()
2678 notMatches("class A { class B { class C; }; };", in TEST()
2680 EXPECT_TRUE(notMatches("class A { class B { class C; }; };", in TEST()
2683 notMatches("class A { class B { class C; }; };", in TEST()
2691 EXPECT_TRUE(notMatches("class A;", DefinitionOfClassA)); in TEST()
2696 EXPECT_TRUE(notMatches("extern int a;", DefinitionOfVariableA)); in TEST()
2701 EXPECT_TRUE(notMatches("class A { void a(); };", DefinitionOfMethodA)); in TEST()
2714 notMatches("class Y { public: Y(); }; void x(int) { Y y; }", in TEST()
2814 EXPECT_TRUE(notMatches("int as[] = { 1, 2, 3 };" in TEST()
2835 EXPECT_TRUE(notMatches("void f(){ for (int i = 0; ; ++i); }", in TEST()
2837 EXPECT_TRUE(notMatches("void f() {int i; for (; i < 4; ++i) {} }", in TEST()
2842 EXPECT_TRUE(notMatches("void f() { ; }", forStmt())); in TEST()
2843 EXPECT_TRUE(notMatches("void f() { if(true); }", forStmt())); in TEST()
2847 EXPECT_TRUE(notMatches("void f();", compoundStmt())); in TEST()
2855 EXPECT_TRUE(notMatches("namespace n { struct S {}; }", in TEST()
2864 EXPECT_TRUE(notMatches("void f() { for(;;); }", in TEST()
2884 EXPECT_TRUE(notMatches("void f() { if (true) for (;;); }", in TEST()
2901 EXPECT_TRUE(notMatches("void f() {}", in TEST()
2908 EXPECT_TRUE(notMatches("void f() { 1; }", in TEST()
2910 EXPECT_TRUE(notMatches("void f() { 1; }", in TEST()
2924 EXPECT_TRUE(notMatches("void f() { { 1; } { 1; 2; 3; 4; } }", in TEST()
2938 EXPECT_TRUE(notMatches("struct { int i; } first; int i(first.i);", in TEST()
2954 EXPECT_TRUE(notMatches( in TEST()
2962 EXPECT_TRUE(notMatches( in TEST()
2964 EXPECT_TRUE(notMatches( in TEST()
2967 EXPECT_TRUE(notMatches( in TEST()
2969 EXPECT_TRUE(notMatches( in TEST()
2974 EXPECT_TRUE(notMatches( in TEST()
2978 EXPECT_TRUE(notMatches( in TEST()
2982 EXPECT_TRUE(notMatches("int i;", varDecl(isPublic(), hasName("i")))); in TEST()
2983 EXPECT_TRUE(notMatches("int i;", varDecl(isProtected(), hasName("i")))); in TEST()
2984 EXPECT_TRUE(notMatches("int i;", varDecl(isPrivate(), hasName("i")))); in TEST()
3005 EXPECT_TRUE(notMatches( in TEST()
3033 EXPECT_TRUE(notMatches("class X { void m(); };", fieldDecl(hasName("m")))); in TEST()
3034 EXPECT_TRUE(notMatches("class X { class m {}; };", fieldDecl(hasName("m")))); in TEST()
3035 EXPECT_TRUE(notMatches("class X { enum { m }; };", fieldDecl(hasName("m")))); in TEST()
3036 EXPECT_TRUE(notMatches("class X { enum m {}; };", fieldDecl(hasName("m")))); in TEST()
3046 EXPECT_TRUE(notMatches("volatile int *i;", in TEST()
3070 EXPECT_TRUE(notMatches("typedef int nonconst_int; nonconst_int i = 42;", in TEST()
3072 EXPECT_TRUE(notMatches("int const* p;", in TEST()
3090 EXPECT_TRUE(notMatches("char c = '0';", castExpr())); in TEST()
3091 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr())); in TEST()
3092 EXPECT_TRUE(notMatches("int i = (0);", castExpr())); in TEST()
3093 EXPECT_TRUE(notMatches("int i = 0;", castExpr())); in TEST()
3102 EXPECT_TRUE(notMatches("char* p = (char*)(&p);", cxxReinterpretCastExpr())); in TEST()
3103 EXPECT_TRUE(notMatches("char q, *p = const_cast<char*>(&q);", in TEST()
3105 EXPECT_TRUE(notMatches("void* p = static_cast<void*>(&p);", in TEST()
3107 EXPECT_TRUE(notMatches("struct B { virtual ~B() {} }; struct D : B {};" in TEST()
3122 notMatches(FooClass + "void r() { Foo f = (Foo) \"hello world\"; }", in TEST()
3125 notMatches(FooClass + "void r() { Foo f = \"hello world\"; }", in TEST()
3142 EXPECT_TRUE(notMatches("char* p = (char*)(&p);", cxxStaticCastExpr())); in TEST()
3143 EXPECT_TRUE(notMatches("char q, *p = const_cast<char*>(&q);", in TEST()
3145 EXPECT_TRUE(notMatches("void* p = reinterpret_cast<char*>(&p);", in TEST()
3147 EXPECT_TRUE(notMatches("struct B { virtual ~B() {} }; struct D : B {};" in TEST()
3158 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);" in TEST()
3186 EXPECT_TRUE(notMatches("char c = 0;", in TEST()
3190 EXPECT_TRUE(notMatches("int arr[3]; int *p = arr;", in TEST()
3212 EXPECT_TRUE(notMatches("int x = 0;", in TEST()
3214 EXPECT_TRUE(notMatches("int x = 0, &y = x;", in TEST()
3217 EXPECT_TRUE(notMatches("int x = 0; double d = (double) x;", in TEST()
3219 EXPECT_TRUE(notMatches("const int *p; int *q = const_cast<int *>(p);", in TEST()
3222 EXPECT_TRUE(notMatches("int x = (0);", in TEST()
3243 EXPECT_TRUE(notMatches("int x; const int y = x;", in TEST()
3246 EXPECT_TRUE(notMatches("int x; int y = x;", in TEST()
3252 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);", in TEST()
3255 EXPECT_TRUE(notMatches("int i = (0);", in TEST()
3258 EXPECT_TRUE(notMatches("float i = (float)0;", in TEST()
3261 EXPECT_TRUE(notMatches("float i = float(0);", in TEST()
3308 EXPECT_TRUE(notMatches("int x = ((0));", in TEST()
3314 EXPECT_TRUE(notMatches("char x = ((0));", in TEST()
3318 EXPECT_TRUE(notMatches("char *x = static_cast<char *>((0));", in TEST()
3352 EXPECT_TRUE(notMatches("char c = ((3));", in TEST()
3357 EXPECT_TRUE(notMatches("float y = (float(0));", in TEST()
3360 EXPECT_TRUE(notMatches("float y = (float)0;", in TEST()
3363 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);", in TEST()
3383 EXPECT_TRUE(notMatches("class X {};", stmt())); in TEST()
3391 EXPECT_TRUE(notMatches("void x() {}", declStmt())); in TEST()
3434 EXPECT_TRUE(notMatches("namespace f { int a; void b(); } using f::a;", in TEST()
3443 EXPECT_TRUE(notMatches( in TEST()
3459 EXPECT_TRUE(notMatches("void f() {int a;}", SingleDeclStmt)); in TEST()
3460 EXPECT_TRUE(notMatches("void f() {int a = 4, b = 3;}", in TEST()
3473 EXPECT_TRUE(notMatches("void f() {int a = 4, b = 3;}", in TEST()
3481 EXPECT_TRUE(notMatches("void f() {int i,j; int k;}", in TEST()
3483 EXPECT_TRUE(notMatches("void f() {int i,j, k, l;}", in TEST()
3488 EXPECT_TRUE(notMatches("void x() {}", whileStmt())); in TEST()
3490 EXPECT_TRUE(notMatches("void x() { do {} while(true); }", whileStmt())); in TEST()
3499 EXPECT_TRUE(notMatches("void x() { while(true) {} }", doStmt())); in TEST()
3506 EXPECT_TRUE(notMatches("void x() { switch(42) {} }", switchCase())); in TEST()
3513 EXPECT_TRUE(notMatches("void x() {}", switchStmt())); in TEST()
3517 EXPECT_TRUE(notMatches("void x() { switch(42); }", in TEST()
3523 EXPECT_TRUE(notMatches( in TEST()
3529 EXPECT_TRUE(notMatches("void x() { switch(42) { case 1+1: case 2+2:; } }", in TEST()
3532 EXPECT_TRUE(notMatches("void x() { switch(42) { case 1 ... 2:; } }", in TEST()
3551 notMatches("void foo() try { } catch(int X) { }", cxxThrowExpr())); in TEST()
3558 EXPECT_TRUE(notMatches("void foo() try { throw; } catch(int) { }", in TEST()
3562 EXPECT_TRUE(notMatches("void foo() try { int X; } catch (...) { }", in TEST()
3567 EXPECT_TRUE(notMatches( in TEST()
3570 EXPECT_TRUE(notMatches( in TEST()
3811 EXPECT_TRUE(notMatches( in TEST()
3879 EXPECT_TRUE(notMatches( in TEST()
3886 EXPECT_TRUE(notMatches( in TEST()
3898 EXPECT_TRUE(notMatches("template<typename T> class A { T i; };", in TEST()
3909 EXPECT_TRUE(notMatches("template<typename T> struct A { void x() { T i; } };", in TEST()
3920 EXPECT_TRUE(notMatches("template<typename T> void A(T t) { T i; }", in TEST()
3931 EXPECT_TRUE(notMatches("template<typename T> void A(T t) { T i; }", in TEST()
3939 EXPECT_TRUE(notMatches( in TEST()
3949 EXPECT_TRUE(notMatches( in TEST()
3952 EXPECT_TRUE(notMatches( in TEST()
3959 EXPECT_TRUE(notMatches( in TEST()
3963 EXPECT_TRUE(notMatches( in TEST()
3971 EXPECT_TRUE(notMatches( in TEST()
3974 EXPECT_TRUE(notMatches( in TEST()
3998 EXPECT_TRUE(notMatches( in TEST()
4075 EXPECT_TRUE(notMatches( in TEST()
4078 EXPECT_TRUE(notMatches( in TEST()
4119 notMatches("template <typename T> struct C { static void f() {} };" in TEST()
4159 EXPECT_TRUE(notMatches("struct A {}; A a[7];", in TEST()
4172 EXPECT_TRUE(notMatches( in TEST()
4175 EXPECT_TRUE(notMatches( in TEST()
4178 EXPECT_TRUE(notMatches( in TEST()
4190 EXPECT_TRUE(notMatches("int i[7];", decayedType())); in TEST()
4198 EXPECT_TRUE(notMatches( in TEST()
4205 EXPECT_TRUE(notMatches( in TEST()
4211 EXPECT_TRUE(notMatches("int c[41], d[43];", constantArrayType(hasSize(42)))); in TEST()
4218 EXPECT_TRUE(notMatches( in TEST()
4227 EXPECT_TRUE(notMatches("int a[42]; void f() { int b[a[0]]; }", in TEST()
4233 EXPECT_TRUE(notMatches("int a[] = {2, 3}; int b[42];", variableArrayType())); in TEST()
4249 EXPECT_TRUE(notMatches("_Atomic(float) f;", in TEST()
4275 EXPECT_TRUE(notMatches("int *array[4];", varDecl(hasType(parenType())))); in TEST()
4280 EXPECT_TRUE(notMatches( in TEST()
4308 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4312 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4314 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4316 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4318 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4322 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4324 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4328 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
4332 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4334 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4336 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4342 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4346 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4348 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4350 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4354 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
4366 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("a"), in TEST()
4368 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("b"), in TEST()
4374 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("c"), in TEST()
4380 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("d"), in TEST()
4384 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("e"), in TEST()
4401 EXPECT_TRUE(notMatches( in TEST()
4433 EXPECT_TRUE(notMatches("int i;", in TEST()
4446 EXPECT_TRUE(notMatches("class C {}; C c;", elaboratedType())); in TEST()
4458 EXPECT_TRUE(notMatches( in TEST()
4464 EXPECT_TRUE(notMatches( in TEST()
4480 EXPECT_TRUE(notMatches( in TEST()
4513 EXPECT_TRUE(notMatches( in TEST()
4520 EXPECT_TRUE(notMatches("void f() {int i;}", nullStmt())); in TEST()
4524 EXPECT_TRUE(notMatches("namespace N {}", namespaceDecl(isAnonymous()))); in TEST()
4539 EXPECT_TRUE(notMatches("namespace A { struct B {}; } A::B b;", Matcher)); in TEST()
4546 EXPECT_TRUE(notMatches("namespace xx { struct A {}; } xx::A a;", Matcher)); in TEST()
4547 EXPECT_TRUE(notMatches("struct ns { struct A {}; }; ns::A a;", Matcher)); in TEST()
4583 EXPECT_TRUE(notMatches( in TEST()
4628 EXPECT_TRUE(notMatches( in TEST()
4846 EXPECT_TRUE(notMatches("int i = 1.f;", in TEST()
4853 EXPECT_TRUE(notMatches( in TEST()
4865 EXPECT_TRUE(notMatches( in TEST()
4876 EXPECT_TRUE(notMatches("class X { class Y {}; };", in TEST()
4888 EXPECT_TRUE(notMatches( in TEST()
4979 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInMainFile()))); in TEST()
4996 EXPECT_TRUE(notMatches("class X {};", in TEST()
4998 EXPECT_TRUE(notMatches("", recordDecl(isExpansionInSystemHeader()))); in TEST()