Lines Matching refs:notMatches
59 EXPECT_TRUE(notMatches("class X {};", YHasClassX)); in TEST()
61 notMatches("class Y { class Z { class X {}; }; };", YHasClassX)); in TEST()
158 EXPECT_TRUE(notMatches("", NotClassX)); in TEST()
159 EXPECT_TRUE(notMatches("class Y {};", NotClassX)); in TEST()
161 EXPECT_TRUE(notMatches("class Y {}; class X : public Y {};", NotClassX)); in TEST()
163 notMatches("class Y {}; class Z {}; class X : public Y {};", in TEST()
173 EXPECT_TRUE(notMatches("class X { class Y {}; class Z {}; };", in TEST()
179 EXPECT_TRUE(notMatches("struct Foo {};", NamedNotRecord)); in TEST()
185 EXPECT_TRUE(notMatches("char *p = 0;", in TEST()
205 EXPECT_TRUE(notMatches("class Z {};", ZDescendantClassX)); in TEST()
217 EXPECT_TRUE(notMatches( in TEST()
262 EXPECT_TRUE(notMatches("void f() { int i; }", in TEST()
264 EXPECT_TRUE(notMatches("void f() { int i; }", in TEST()
279 EXPECT_TRUE(notMatches("template <typename T> struct S;" in TEST()
298 notMatches("class X {}; class W : public X {};", YOrZDerivedFromX)); in TEST()
299 EXPECT_TRUE(notMatches("class Z {};", YOrZDerivedFromX)); in TEST()
304 EXPECT_TRUE(notMatches("class V {};", XOrYOrZOrU)); in TEST()
314 EXPECT_TRUE(notMatches("class A {};", XOrYOrZOrUOrV)); in TEST()
319 EXPECT_TRUE(notMatches("int F() { return 1; }", MixedTypes)); in TEST()
330 EXPECT_TRUE(notMatches("class X {};", IsDerivedFromX)); in TEST()
331 EXPECT_TRUE(notMatches("class X;", IsDerivedFromX)); in TEST()
332 EXPECT_TRUE(notMatches("class Y;", IsDerivedFromX)); in TEST()
333 EXPECT_TRUE(notMatches("", IsDerivedFromX)); in TEST()
340 EXPECT_TRUE(notMatches("class Y;", IsAX)); in TEST()
341 EXPECT_TRUE(notMatches("", IsAX)); in TEST()
363 notMatches("template<class X> class A { class Z : public X {}; };", in TEST()
373 notMatches("template<template<class T> class X> class A { " in TEST()
381 notMatches("template<class X> class A { class Z : public X::D {}; };", in TEST()
397 notMatches("template<class T> class X {}; " in TEST()
406 notMatches("template<class X> class A { class Z : public X::D::E {}; };", in TEST()
420 notMatches("template<class X> class D { typedef X A; typedef A B; " in TEST()
439 notMatches("class Base {}; class Base2 {}; typedef Base2 X; " in TEST()
445 notMatches("template <typename T> class Z;" in TEST()
461 notMatches("template<int> struct X;" in TEST()
488 EXPECT_TRUE(notMatches( in TEST()
513 EXPECT_TRUE(notMatches( in TEST()
525 EXPECT_TRUE(notMatches( in TEST()
543 EXPECT_TRUE(notMatches("struct S { void operator()() const; };", IsLambda)); in TEST()
620 EXPECT_TRUE(notMatches("class Y { }; " in TEST()
632 EXPECT_TRUE(notMatches("class Y { void myOperator(); };", in TEST()
661 EXPECT_TRUE(notMatches("int X;", M)); in TEST()
662 EXPECT_TRUE(notMatches("void f() { static int X; }", M)); in TEST()
665 EXPECT_TRUE(notMatches("void f() { int X; }", M)); in TEST()
676 notMatches(T, varDecl(hasName("y"), hasAutomaticStorageDuration()))); in TEST()
678 notMatches(T, varDecl(hasName("a"), hasAutomaticStorageDuration()))); in TEST()
682 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasStaticStorageDuration()))); in TEST()
688 EXPECT_TRUE(notMatches(T, varDecl(hasName("x"), hasThreadStorageDuration()))); in TEST()
689 EXPECT_TRUE(notMatches(T, varDecl(hasName("y"), hasThreadStorageDuration()))); in TEST()
690 EXPECT_TRUE(notMatches(T, varDecl(hasName("a"), hasThreadStorageDuration()))); in TEST()
702 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", sizeOfExpr( in TEST()
707 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", sizeOfExpr( in TEST()
720 EXPECT_TRUE(notMatches("int *i;", varDecl(hasType(isInteger())))); in TEST()
721 EXPECT_TRUE(notMatches("struct T {}; T t; void f(T *) { }; void g() {f(&t);}", in TEST()
728 EXPECT_TRUE(notMatches("unsigned i = 0;", in TEST()
733 EXPECT_TRUE(notMatches("int i = 0;", varDecl(hasType(isUnsignedInteger())))); in TEST()
748 EXPECT_TRUE(notMatches("int i = 0;", varDecl(hasType(isAnyPointer())))); in TEST()
756 EXPECT_TRUE(notMatches("int i;", varDecl(hasType(isAnyCharacter())))); in TEST()
764 EXPECT_TRUE(notMatches("class Y { void x() { (*this).y; } int y; };", in TEST()
771 EXPECT_TRUE(notMatches("class Y { void x() { y; } static int y; };", in TEST()
773 EXPECT_TRUE(notMatches("class Y { void x() { (*this).y; } static int y; };", in TEST()
782 EXPECT_TRUE(notMatches("class Y { void x() { Y y; y.x(); } };", in TEST()
789 EXPECT_TRUE(notMatches("struct S { operator int(); };", in TEST()
798 EXPECT_TRUE(notMatches("void x(int, int) { x(0, 0); }", Call1Arg)); in TEST()
805 EXPECT_TRUE(notMatches("void f() {}", Function1Arg)); in TEST()
806 EXPECT_TRUE(notMatches("void f(int i, int j, int k) {}", Function1Arg)); in TEST()
822 notMatches("class X {}; extern X x;", ReferenceClassX)); in TEST()
824 notMatches("class X {}; void y(X *y) { X *&x = y; }", ReferenceClassX)); in TEST()
828 EXPECT_TRUE(notMatches("typedef const int const_int; const_int i = 1;", in TEST()
834 EXPECT_TRUE(notMatches("int m;", in TEST()
842 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC()))); in TEST()
846 EXPECT_TRUE(notMatches("class A { ~A(); };", in TEST()
854 notMatches("void Func();", functionDecl(hasName("Func"), isDeleted()))); in TEST()
860 EXPECT_TRUE(notMatches("void f();", functionDecl(isNoThrow()))); in TEST()
861 EXPECT_TRUE(notMatches("void f() throw(int);", functionDecl(isNoThrow()))); in TEST()
863 notMatches("void f() noexcept(false);", functionDecl(isNoThrow()))); in TEST()
867 EXPECT_TRUE(notMatches("void f();", functionProtoType(isNoThrow()))); in TEST()
868 EXPECT_TRUE(notMatches("void f() throw(int);", functionProtoType(isNoThrow()))); in TEST()
870 notMatches("void f() noexcept(false);", functionProtoType(isNoThrow()))); in TEST()
887 notMatches("template<typename T> struct C {}; C<int> c;", in TEST()
893 notMatches("template<typename T> struct C {}; C<int> c;", in TEST()
901 EXPECT_TRUE(notMatches("template<typename T> struct C {}; C<int> c;", in TEST()
916 EXPECT_TRUE(notMatches("template<int T> struct C {}; C<42> c;", in TEST()
926 notMatches("class C { public: int i; };", accessSpecDecl(isProtected()))); in TEST()
928 notMatches("class C { public: int i; };", accessSpecDecl(isPrivate()))); in TEST()
930 EXPECT_TRUE(notMatches("class C { int i; };", accessSpecDecl())); in TEST()
937 EXPECT_TRUE(notMatches("class X {};", cxxRecordDecl(isFinal()))); in TEST()
939 notMatches("class X { virtual void f(); };", cxxMethodDecl(isFinal()))); in TEST()
945 EXPECT_TRUE(notMatches("class X { int f(); };", cxxMethodDecl(isVirtual()))); in TEST()
953 notMatches("class A { virtual int f(); };" in TEST()
961 EXPECT_TRUE(notMatches("class X { int f(); };", cxxMethodDecl(isPure()))); in TEST()
975 EXPECT_TRUE(notMatches("class X { X &operator=(X &&); };", in TEST()
980 EXPECT_TRUE(notMatches("class X { X &operator=(X); };", in TEST()
990 EXPECT_TRUE(notMatches("class X { X &operator=(X &); };", in TEST()
998 notMatches("struct A { void foo(); };", cxxMethodDecl(isConst()))); in TEST()
1005 EXPECT_TRUE(notMatches("class X { virtual int f(); }; " in TEST()
1008 EXPECT_TRUE(notMatches("class X { int f(); }; " in TEST()
1011 EXPECT_TRUE(notMatches("class X { int f(); int f(int); }; ", in TEST()
1032 notMatches("class X { public: X(int); }; void x() { int z; X x(z); }", in TEST()
1038 notMatches("class X { public: X(int); }; void x() { int y; X x(y); }", in TEST()
1055 notMatches("class X { public: X(int, int); }; void x() { X x(0, 0); }", in TEST()
1074 EXPECT_TRUE(notMatches("class Foo { };", in TEST()
1089 EXPECT_TRUE(notMatches("struct S { S(int); };", in TEST()
1096 EXPECT_TRUE(notMatches("struct S { S(); };", in TEST()
1098 EXPECT_TRUE(notMatches("struct S { S(); };", in TEST()
1101 EXPECT_TRUE(notMatches("struct S { S(const S&); };", in TEST()
1105 EXPECT_TRUE(notMatches("struct S { S(const S&); };", in TEST()
1108 EXPECT_TRUE(notMatches("struct S { S(S&&); };", in TEST()
1110 EXPECT_TRUE(notMatches("struct S { S(S&&); };", in TEST()
1117 EXPECT_TRUE(notMatches("struct S { int X = 0; };", in TEST()
1119 EXPECT_TRUE(notMatches("struct S { S() = default; };", in TEST()
1121 EXPECT_TRUE(notMatches("struct S { S() = delete; };", in TEST()
1130 EXPECT_TRUE(notMatches("struct S { S(); S(int); int X; };", in TEST()
1132 EXPECT_TRUE(notMatches("struct S { S(){} S(int X) : X(X) {} int X; };", in TEST()
1150 EXPECT_TRUE(notMatches("const char *s = \"ab\";", Literal)); in TEST()
1162 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1164 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1166 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1168 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1170 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1172 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1174 EXPECT_TRUE(notMatches("namespace a { namespace b { class C; } }", in TEST()
1176 EXPECT_TRUE(notMatches("namespace a { namespace b { class AC; } }", in TEST()
1194 notMatches("class A { class B { class C; }; };", in TEST()
1197 notMatches("class A { class B { class C; }; };", in TEST()
1200 notMatches("class A { class B { class C; }; };", in TEST()
1203 notMatches("class A { class B { class C; }; };", in TEST()
1206 notMatches("class A { class B { class C; }; };", in TEST()
1208 EXPECT_TRUE(notMatches("class A { class B { class C; }; };", in TEST()
1211 notMatches("class A { class B { class C; }; };", in TEST()
1269 EXPECT_TRUE(notMatches(Code, recordDecl(hasAnyName("::C", "::b::C")))); in TEST()
1281 EXPECT_TRUE(notMatches("class A;", DefinitionOfClassA)); in TEST()
1286 EXPECT_TRUE(notMatches("extern int a;", DefinitionOfVariableA)); in TEST()
1291 EXPECT_TRUE(notMatches("class A { void a(); };", DefinitionOfMethodA)); in TEST()
1323 EXPECT_TRUE(notMatches("void f() {}", in TEST()
1330 EXPECT_TRUE(notMatches("void f() { 1; }", in TEST()
1332 EXPECT_TRUE(notMatches("void f() { 1; }", in TEST()
1346 EXPECT_TRUE(notMatches("void f() { { 1; } { 1; 2; 3; 4; } }", in TEST()
1360 EXPECT_TRUE(notMatches("struct { int i; } first; int i(first.i);", in TEST()
1376 EXPECT_TRUE(notMatches( in TEST()
1384 EXPECT_TRUE(notMatches("class C { int a : 2; int b; };", in TEST()
1393 EXPECT_TRUE(notMatches( in TEST()
1395 EXPECT_TRUE(notMatches( in TEST()
1398 EXPECT_TRUE(notMatches( in TEST()
1400 EXPECT_TRUE(notMatches( in TEST()
1405 EXPECT_TRUE(notMatches( in TEST()
1409 EXPECT_TRUE(notMatches( in TEST()
1413 EXPECT_TRUE(notMatches("int i;", varDecl(isPublic(), hasName("i")))); in TEST()
1414 EXPECT_TRUE(notMatches("int i;", varDecl(isProtected(), hasName("i")))); in TEST()
1415 EXPECT_TRUE(notMatches("int i;", varDecl(isPrivate(), hasName("i")))); in TEST()
1419 EXPECT_TRUE(notMatches("void f();", functionDecl(hasDynamicExceptionSpec()))); in TEST()
1420 EXPECT_TRUE(notMatches("void g() noexcept;", in TEST()
1422 EXPECT_TRUE(notMatches("void h() noexcept(true);", in TEST()
1424 EXPECT_TRUE(notMatches("void i() noexcept(false);", in TEST()
1433 EXPECT_TRUE(notMatches("void f();", functionProtoType(hasDynamicExceptionSpec()))); in TEST()
1434 EXPECT_TRUE(notMatches("void g() noexcept;", in TEST()
1436 EXPECT_TRUE(notMatches("void h() noexcept(true);", in TEST()
1438 EXPECT_TRUE(notMatches("void i() noexcept(false);", in TEST()
1449 EXPECT_TRUE(notMatches( in TEST()
1477 EXPECT_TRUE(notMatches("class X { void m(); };", fieldDecl(hasName("m")))); in TEST()
1478 EXPECT_TRUE(notMatches("class X { class m {}; };", fieldDecl(hasName("m")))); in TEST()
1479 EXPECT_TRUE(notMatches("class X { enum { m }; };", fieldDecl(hasName("m")))); in TEST()
1480 EXPECT_TRUE(notMatches("class X { enum m {}; };", fieldDecl(hasName("m")))); in TEST()
1490 EXPECT_TRUE(notMatches("volatile int *i;", in TEST()
1514 EXPECT_TRUE(notMatches("typedef int nonconst_int; nonconst_int i = 42;", in TEST()
1516 EXPECT_TRUE(notMatches("int const* p;", in TEST()
1523 EXPECT_TRUE(notMatches("void f() {int i,j; int k;}", in TEST()
1525 EXPECT_TRUE(notMatches("void f() {int i,j, k, l;}", in TEST()
1549 EXPECT_TRUE(notMatches( in TEST()
1617 EXPECT_TRUE(notMatches( in TEST()
1624 EXPECT_TRUE(notMatches( in TEST()
1636 EXPECT_TRUE(notMatches("template<typename T> class A { T i; };", in TEST()
1647 EXPECT_TRUE(notMatches("template<typename T> struct A { void x() { T i; } };", in TEST()
1658 EXPECT_TRUE(notMatches("template<typename T> void A(T t) { T i; }", in TEST()
1669 EXPECT_TRUE(notMatches("template<typename T> void A(T t) { T i; }", in TEST()
1677 EXPECT_TRUE(notMatches( in TEST()
1687 EXPECT_TRUE(notMatches( in TEST()
1690 EXPECT_TRUE(notMatches( in TEST()
1697 EXPECT_TRUE(notMatches( in TEST()
1701 EXPECT_TRUE(notMatches( in TEST()
1709 EXPECT_TRUE(notMatches( in TEST()
1712 EXPECT_TRUE(notMatches( in TEST()
1732 EXPECT_TRUE(notMatches("struct S { void func(); };", in TEST()
1744 EXPECT_TRUE(notMatches("struct S { int func(); };", in TEST()
1755 EXPECT_TRUE(notMatches("struct A {}; A a[7];", in TEST()
1768 EXPECT_TRUE(notMatches( in TEST()
1771 EXPECT_TRUE(notMatches( in TEST()
1774 EXPECT_TRUE(notMatches( in TEST()
1786 EXPECT_TRUE(notMatches("int i[7];", decayedType())); in TEST()
1794 EXPECT_TRUE(notMatches( in TEST()
1800 EXPECT_TRUE(notMatches("namespace N {}", namespaceDecl(isAnonymous()))); in TEST()
1809 EXPECT_TRUE(notMatches("int i = 1.f;", in TEST()
1816 EXPECT_TRUE(notMatches( in TEST()
1828 EXPECT_TRUE(notMatches( in TEST()
1839 EXPECT_TRUE(notMatches("class X { class Y {}; };", in TEST()
1851 EXPECT_TRUE(notMatches( in TEST()
1931 EXPECT_TRUE(notMatches("int i = 0;", expr(nullPointerConstant()))); in TEST()