Lines Matching refs:notMatches
25 EXPECT_TRUE(notMatches("class A { void func(); };", in TEST()
47 EXPECT_TRUE(notMatches( in TEST()
77 EXPECT_TRUE(notMatches("void f() { float f = 2.0f; }", in TEST()
106 EXPECT_TRUE(notMatches("int** i;", in TEST()
118 EXPECT_TRUE(notMatches( in TEST()
130 EXPECT_TRUE(notMatches( in TEST()
142 EXPECT_TRUE(notMatches( in TEST()
151 EXPECT_TRUE(notMatches("class A {};", TypeA)); in TEST()
158 EXPECT_TRUE(notMatches("class A {};", TypeA)); in TEST()
192 EXPECT_TRUE(notMatches("template <typename T> struct S {" in TEST()
249 notMatches("class X {}; void y(X *x) { x; }", in TEST()
261 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX)))); in TEST()
272 notMatches("class X {}; void y(X *x) { x; }", in TEST()
281 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX)))); in TEST()
288 EXPECT_TRUE(notMatches("typedef const int T;", in TEST()
298 EXPECT_TRUE(notMatches("using T = const int;", in TEST()
309 EXPECT_TRUE(notMatches("class X {}; X x;", in TEST()
318 EXPECT_TRUE(notMatches("class Y { void x() {} };", CallMethodX)); in TEST()
323 EXPECT_TRUE(notMatches("struct Y { operator int() const; }; Y y = Y();", in TEST()
331 notMatches("class Y { void x() { this->x(); } };", callExpr(callee(callExpr())))); in TEST()
341 EXPECT_TRUE(notMatches("void x(int) { int z; x(z); }", CallArgumentY)); in TEST()
345 EXPECT_TRUE(notMatches("void x(int) { int y; x(y); }", WrongIndex)); in TEST()
354 EXPECT_TRUE(notMatches("void x(int, int) { x(1, 2); }", CallArgumentY)); in TEST()
369 EXPECT_TRUE(notMatches("void f(int* i) { int* y; f(y); }", CallExpr)); in TEST()
371 EXPECT_TRUE(notMatches("void f(int i) { int x; f(x); }", CallExpr)); in TEST()
462 EXPECT_TRUE(notMatches("typedef int &int_ref;" in TEST()
476 EXPECT_TRUE(notMatches("class X { void x(int) {} };", in TEST()
481 EXPECT_TRUE(notMatches("class X { void x(int) {} };", in TEST()
489 EXPECT_TRUE(notMatches( in TEST()
512 EXPECT_TRUE(notMatches("class Y { int f() { return 1; } };", in TEST()
520 EXPECT_TRUE(notMatches( in TEST()
526 EXPECT_TRUE(notMatches("class Y {}; class X { void x() {} };", in TEST()
534 EXPECT_TRUE(notMatches("class Y {}; class X { void x(int) {} };", in TEST()
554 EXPECT_TRUE(notMatches( in TEST()
567 EXPECT_TRUE(notMatches( in TEST()
581 EXPECT_TRUE(notMatches( in TEST()
592 EXPECT_TRUE(notMatches( in TEST()
613 EXPECT_TRUE(notMatches("template<unsigned T> struct C {}; C<42> c;", in TEST()
621 EXPECT_TRUE(notMatches("class Foo { Foo(int i); };", in TEST()
631 EXPECT_TRUE(notMatches("class Foo {};", in TEST()
637 notMatches("class Foo { Foo() { } };", in TEST()
659 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer( in TEST()
671 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer( in TEST()
685 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer( in TEST()
704 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf( in TEST()
710 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf( in TEST()
718 EXPECT_TRUE(notMatches("void f() { if (false) false; else true; }", in TEST()
722 EXPECT_TRUE(notMatches("void f() { if (false) true; else false; }", in TEST()
730 EXPECT_TRUE(notMatches("void x() { true && false; }", OperatorOr)); in TEST()
740 EXPECT_TRUE(notMatches("void x() { false || true; }", OperatorTrueFalse)); in TEST()
745 EXPECT_TRUE(notMatches("void x() { \"abc\"[1]; }", OperatorIntPointer)); in TEST()
754 EXPECT_TRUE(notMatches("void x() { true || true; }", HasOperand)); in TEST()
841 notMatches("struct A { void x(A *a) { a->x(this); } };", in TEST()
846 notMatches("bool b = true;", binaryOperator(hasOperatorName("=")))); in TEST()
849 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST()
852 EXPECT_TRUE(notMatches( in TEST()
862 EXPECT_TRUE(notMatches("void x() { true; } ", OperatorNot)); in TEST()
870 EXPECT_TRUE(notMatches("void x() { !true; }", OperatorOnFalse)); in TEST()
896 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator())); in TEST()
899 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator())); in TEST()
903 EXPECT_TRUE(notMatches( in TEST()
915 EXPECT_TRUE(notMatches( in TEST()
937 notMatches("class Y { public: Y(); }; void x(int) { Y y; }", in TEST()
965 EXPECT_TRUE(notMatches("void x() { if (false) {} }", IfStmt)); in TEST()
970 EXPECT_TRUE(notMatches("void x() { for (;false;) {} }", ForStmt)); in TEST()
975 EXPECT_TRUE(notMatches("void x() { while (false) {} }", WhileStmt)); in TEST()
980 EXPECT_TRUE(notMatches("void x() { switch (43) {case 43:;} }", SwitchStmt)); in TEST()
999 EXPECT_TRUE(notMatches("void f(){ for (int i = 0; ; ++i); }", in TEST()
1001 EXPECT_TRUE(notMatches("void f() {int i; for (; i < 4; ++i) {} }", in TEST()
1008 EXPECT_TRUE(notMatches("void f() { for(;;); }", in TEST()
1017 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt())))); in TEST()
1032 EXPECT_TRUE(notMatches("void f() { if (true) for (;;); }", in TEST()
1082 EXPECT_TRUE(notMatches("char c = 0;", in TEST()
1086 EXPECT_TRUE(notMatches("int arr[3]; int *p = arr;", in TEST()
1098 notMatches("class C {}; C a = C();", varDecl(has(cxxConstructExpr())))); in TEST()
1118 EXPECT_TRUE(notMatches("int x; const int y = x;", in TEST()
1121 EXPECT_TRUE(notMatches("int x; int y = x;", in TEST()
1127 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);", in TEST()
1130 EXPECT_TRUE(notMatches("int i = (0);", in TEST()
1133 EXPECT_TRUE(notMatches("float i = (float)0;", in TEST()
1136 EXPECT_TRUE(notMatches("float i = float(0);", in TEST()
1183 EXPECT_TRUE(notMatches("int x = ((0));", in TEST()
1189 EXPECT_TRUE(notMatches("char x = ((0));", in TEST()
1193 EXPECT_TRUE(notMatches("char *x = static_cast<char *>((0));", in TEST()
1227 EXPECT_TRUE(notMatches("char c = ((3));", in TEST()
1232 EXPECT_TRUE(notMatches("float y = (float(0));", in TEST()
1235 EXPECT_TRUE(notMatches("float y = (float)0;", in TEST()
1238 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);", in TEST()
1261 EXPECT_TRUE(notMatches("namespace f { int a; void b(); } using f::a;", in TEST()
1270 EXPECT_TRUE(notMatches( in TEST()
1279 EXPECT_TRUE(notMatches("void f() {int a;}", SingleDeclStmt)); in TEST()
1280 EXPECT_TRUE(notMatches("void f() {int a = 4, b = 3;}", in TEST()
1293 EXPECT_TRUE(notMatches("void f() {int a = 4, b = 3;}", in TEST()
1299 EXPECT_TRUE(notMatches("void x() { switch(42); }", in TEST()
1305 EXPECT_TRUE(notMatches( in TEST()
1311 EXPECT_TRUE(notMatches("void x() { switch(42) { case 1+1: case 2+2:; } }", in TEST()
1314 EXPECT_TRUE(notMatches("void x() { switch(42) { case 1 ... 2:; } }", in TEST()
1330 EXPECT_TRUE(notMatches( in TEST()
1333 EXPECT_TRUE(notMatches( in TEST()
1562 EXPECT_TRUE(notMatches( in TEST()
1639 EXPECT_TRUE(notMatches( in TEST()
1642 EXPECT_TRUE(notMatches( in TEST()
1730 notMatches("template <typename T> struct C { static void f() {} };" in TEST()
1767 EXPECT_TRUE(notMatches( in TEST()
1781 EXPECT_TRUE(notMatches( in TEST()
1787 EXPECT_TRUE(notMatches( in TEST()
1803 EXPECT_TRUE(notMatches( in TEST()
1835 EXPECT_TRUE(notMatches( in TEST()
1880 EXPECT_TRUE(notMatches( in TEST()
1997 notMatches( in TEST()
2007 EXPECT_TRUE(notMatches(CppString2, returnStmt(forFunction(hasName("F"))))); in TEST()
2036 EXPECT_TRUE(notMatches(Code1, ForEachOverriddenInClass("A"))); in TEST()
2051 EXPECT_TRUE(notMatches(Code2, ForEachOverriddenInClass("A1"))); in TEST()