Lines Matching refs:notMatches

35   EXPECT_TRUE(notMatches("", decl(usingDecl())));  in TEST()
50 EXPECT_TRUE(notMatches("#define X 1", NamedX)); in TEST()
63 EXPECT_TRUE(notMatches("#define Xkl 1", NamedX)); in TEST()
72 EXPECT_TRUE(notMatches("int cab;", Abc)); in TEST()
80 EXPECT_TRUE(notMatches("class C { int ckc; };", StartsWithK)); in TEST()
95 EXPECT_TRUE(notMatches("", ClassX)); in TEST()
115 EXPECT_TRUE(notMatches("void foo() {};", linkageSpecDecl())); in TEST()
120 EXPECT_TRUE(notMatches("class X;", ClassX)); in TEST()
121 EXPECT_TRUE(notMatches("class X {};", ClassX)); in TEST()
131 EXPECT_TRUE(notMatches("template<typename T> class X { };" in TEST()
138 EXPECT_TRUE(notMatches("template<typename T, typename U> class X { };" in TEST()
164 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X")))); in TEST()
174 EXPECT_TRUE(notMatches("enum X{ B };", Matcher)); in TEST()
175 EXPECT_TRUE(notMatches("enum X {};", Matcher)); in TEST()
199 EXPECT_TRUE(notMatches("class Y { void x() {} };", MethodX)); in TEST()
211 notMatches("class Y { public: void x(); }; void z(Y *&y) { y->x(); }", in TEST()
214 notMatches("class Y { public: void x(); }; void z(Y y[]) { y->x(); }", in TEST()
217 notMatches("class Y { public: void x(); }; void z() { Y *y; y->x(); }", in TEST()
233 notMatches("class Y { public: void x(); }; void z() { Y y; y.x(); }", in TEST()
236 notMatches("class Y { public: void x(); }; void z(Y &y) { y.x(); }", in TEST()
248 EXPECT_TRUE(notMatches("void f() { for (int i; i<5; ++i); }", in TEST()
267 notMatches("template <typename T> void f();", nonTypeTemplateParmDecl())); in TEST()
274 notMatches("template <int N> void f();", templateTypeParmDecl())); in TEST()
312 EXPECT_TRUE(notMatches("class Y { }; " in TEST()
321 EXPECT_TRUE(notMatches("bool x = true, y = true; bool t = x && y;", OpCall)); in TEST()
322 EXPECT_TRUE(notMatches("int t = 5 << 2;", OpCall)); in TEST()
371 EXPECT_TRUE(notMatches( in TEST()
395 EXPECT_TRUE(notMatches( in TEST()
404 EXPECT_TRUE(notMatches("void x() { int a = sizeof(a); }", in TEST()
414 EXPECT_TRUE(notMatches("class Y { void x() {} };", memberExpr())); in TEST()
433 EXPECT_TRUE(notMatches("class Y { void x() { y; } static int y; };", in TEST()
435 EXPECT_TRUE(notMatches("class Y { void x() { Y::y; } static int y; };", in TEST()
443 EXPECT_TRUE(notMatches("void f() { }", CallFunctionF)); in TEST()
458 notMatches("void f(int); template <typename T> void g(T t) { f(t); }", in TEST()
461 notMatches("void f(int);" in TEST()
466 EXPECT_TRUE(notMatches("void f(int);", functionDecl(isVariadic()))); in TEST()
467 EXPECT_TRUE(notMatches("template <typename... Ts> void f(Ts...);", in TEST()
469 EXPECT_TRUE(notMatches("void f();", functionDecl(isVariadic()))); in TEST()
484 notMatches("void f(double d); void f(int t) {}", in TEST()
490 notMatches("void g(); template <typename T> void f(T t) {}" in TEST()
503 EXPECT_TRUE(notMatches("template<typename T> struct A {};", in TEST()
509 EXPECT_TRUE(notMatches("class A {};", declaratorDecl())); in TEST()
514 EXPECT_TRUE(notMatches("void f();", parmVarDecl())); in TEST()
535 notMatches("struct X { int f () { int a; return a; } };", cxxThisExpr())); in TEST()
551 notMatches(ClassString + in TEST()
562 notMatches("class no_dtor {};" in TEST()
581 notMatches(ClassString + in TEST()
592 notMatches(ClassString + in TEST()
598 notMatches(ClassString + in TEST()
626 EXPECT_TRUE(notMatches("void x(int, int = 0) { int y; x(y, 0); }", Arg)); in TEST()
637 EXPECT_TRUE(notMatches("const char s[1] = {'a'};", Literal)); in TEST()
646 EXPECT_TRUE(notMatches("const wchar_t c = 0x2126;", CharLiteral)); in TEST()
647 EXPECT_TRUE(notMatches("const char c = 0x1;", CharLiteral)); in TEST()
658 EXPECT_TRUE(notMatches("int i = L'a';", in TEST()
661 EXPECT_TRUE(notMatches("int i = 'a';", HasIntLiteral)); in TEST()
662 EXPECT_TRUE(notMatches("int i = 1e10;", HasIntLiteral)); in TEST()
663 EXPECT_TRUE(notMatches("int i = 10.0;", HasIntLiteral)); in TEST()
678 EXPECT_TRUE(notMatches("float i = 10;", HasFloatLiteral)); in TEST()
679 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0)))); in TEST()
680 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f)))); in TEST()
682 notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0))))); in TEST()
778 EXPECT_TRUE(notMatches("void x() { if (false) {} }", Condition)); in TEST()
779 EXPECT_TRUE(notMatches("void x() { bool a = true; if (a) {} }", Condition)); in TEST()
780 EXPECT_TRUE(notMatches("void x() { if (true || false) {} }", Condition)); in TEST()
781 EXPECT_TRUE(notMatches("void x() { if (1) {} }", Condition)); in TEST()
790 EXPECT_TRUE(notMatches("void x() { false ? false : true; }", Conditional)); in TEST()
791 EXPECT_TRUE(notMatches("void x() { true ? true : false; }", Conditional)); in TEST()
798 notMatches("void x() { true ? false : true; }", ConditionalFalse)); in TEST()
802 notMatches("void x() { true ? false : true; }", ConditionalFalse)); in TEST()
826 EXPECT_TRUE(notMatches("int i; void f() { i = 1; }", in TEST()
833 EXPECT_TRUE(notMatches("int as[] = { 1, 2, 3 };" in TEST()
839 EXPECT_TRUE(notMatches("void f() { ; }", forStmt())); in TEST()
840 EXPECT_TRUE(notMatches("void f() { if(true); }", forStmt())); in TEST()
844 EXPECT_TRUE(notMatches("void f();", compoundStmt())); in TEST()
852 EXPECT_TRUE(notMatches("namespace n { struct S {}; }", in TEST()
872 EXPECT_TRUE(notMatches("char c = '0';", castExpr())); in TEST()
873 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr())); in TEST()
874 EXPECT_TRUE(notMatches("int i = (0);", castExpr())); in TEST()
875 EXPECT_TRUE(notMatches("int i = 0;", castExpr())); in TEST()
884 EXPECT_TRUE(notMatches("char* p = (char*)(&p);", cxxReinterpretCastExpr())); in TEST()
885 EXPECT_TRUE(notMatches("char q, *p = const_cast<char*>(&q);", in TEST()
887 EXPECT_TRUE(notMatches("void* p = static_cast<void*>(&p);", in TEST()
889 EXPECT_TRUE(notMatches("struct B { virtual ~B() {} }; struct D : B {};" in TEST()
904 notMatches(FooClass + "void r() { Foo f = (Foo) \"hello world\"; }", in TEST()
907 notMatches(FooClass + "void r() { Foo f = \"hello world\"; }", in TEST()
924 EXPECT_TRUE(notMatches("char* p = (char*)(&p);", cxxStaticCastExpr())); in TEST()
925 EXPECT_TRUE(notMatches("char q, *p = const_cast<char*>(&q);", in TEST()
927 EXPECT_TRUE(notMatches("void* p = reinterpret_cast<char*>(&p);", in TEST()
929 EXPECT_TRUE(notMatches("struct B { virtual ~B() {} }; struct D : B {};" in TEST()
940 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);" in TEST()
966 EXPECT_TRUE(notMatches("int x = 0;", in TEST()
968 EXPECT_TRUE(notMatches("int x = 0, &y = x;", in TEST()
971 EXPECT_TRUE(notMatches("int x = 0; double d = (double) x;", in TEST()
973 EXPECT_TRUE(notMatches("const int *p; int *q = const_cast<int *>(p);", in TEST()
976 EXPECT_TRUE(notMatches("int x = (0);", in TEST()
981 EXPECT_TRUE(notMatches("class X {};", stmt())); in TEST()
989 EXPECT_TRUE(notMatches("void x() {}", declStmt())); in TEST()
1037 EXPECT_TRUE(notMatches("void x() {}", whileStmt())); in TEST()
1039 EXPECT_TRUE(notMatches("void x() { do {} while(true); }", whileStmt())); in TEST()
1048 EXPECT_TRUE(notMatches("void x() { while(true) {} }", doStmt())); in TEST()
1055 EXPECT_TRUE(notMatches("void x() { switch(42) {} }", switchCase())); in TEST()
1062 EXPECT_TRUE(notMatches("void x() {}", switchStmt())); in TEST()
1069 notMatches("void foo() try { } catch(int X) { }", cxxThrowExpr())); in TEST()
1076 EXPECT_TRUE(notMatches("void foo() try { throw; } catch(int) { }", in TEST()
1080 EXPECT_TRUE(notMatches("void foo() try { int X; } catch (...) { }", in TEST()
1087 EXPECT_TRUE(notMatches("int i = 3;", parenExpr())); in TEST()
1088 EXPECT_TRUE(notMatches("int foo() { return 1; }; int a = foo();", in TEST()
1098 EXPECT_TRUE(notMatches( in TEST()
1104 EXPECT_TRUE(notMatches("int c[41], d[43];", constantArrayType(hasSize(42)))); in TEST()
1111 EXPECT_TRUE(notMatches( in TEST()
1120 EXPECT_TRUE(notMatches("int a[42]; void f() { int b[a[0]]; }", in TEST()
1126 EXPECT_TRUE(notMatches("int a[] = {2, 3}; int b[42];", variableArrayType())); in TEST()
1143 EXPECT_TRUE(notMatches("_Atomic(float) f;", in TEST()
1168 notMatches("void (*fp)(void);", pointerType(pointee(functionType())))); in TEST()
1185 EXPECT_TRUE(notMatches("int *array[4];", varDecl(hasType(parenType())))); in TEST()
1190 EXPECT_TRUE(notMatches( in TEST()
1218 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1222 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1224 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1226 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1228 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1232 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1234 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1238 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ptr"), in TEST()
1242 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1244 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1246 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1252 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1256 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1258 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1260 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1264 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("ref"), in TEST()
1276 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("a"), in TEST()
1278 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("b"), in TEST()
1284 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("c"), in TEST()
1290 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("d"), in TEST()
1294 EXPECT_TRUE(notMatches(Fragment, varDecl(hasName("e"), in TEST()
1334 EXPECT_TRUE(notMatches("int i;", in TEST()
1347 EXPECT_TRUE(notMatches("class C {}; C c;", elaboratedType())); in TEST()
1375 EXPECT_TRUE(notMatches( in TEST()
1382 EXPECT_TRUE(notMatches("void f() {int i;}", nullStmt())); in TEST()
1396 EXPECT_TRUE(notMatches("namespace A { struct B {}; } A::B b;", Matcher)); in TEST()
1403 EXPECT_TRUE(notMatches("namespace xx { struct A {}; } xx::A a;", Matcher)); in TEST()
1404 EXPECT_TRUE(notMatches("struct ns { struct A {}; }; ns::A a;", Matcher)); in TEST()
1474 EXPECT_TRUE(notMatches("using typedefDeclTest2 = int;", in TEST()
1481 EXPECT_TRUE(notMatches("typedef int typeAliasTest;", in TEST()