Home | History | Annotate | Download | only in Dynamic

Lines Matching full:matches

139   EXPECT_TRUE(matches(ClassSnippet, IsArrowValue));
140 EXPECT_TRUE(matches(BoolSnippet, BoolValue));
141 EXPECT_FALSE(matches(ClassSnippet, BoolValue));
142 EXPECT_FALSE(matches(BoolSnippet, IsArrowValue));
149 EXPECT_TRUE(matches("class X {};", Value));
150 EXPECT_FALSE(matches("int x;", Value));
154 EXPECT_TRUE(matches("void foo(int,int);", Value));
155 EXPECT_FALSE(matches("void foo(int);", Value));
168 EXPECT_FALSE(matches(code, HasInitializerSimple));
169 EXPECT_FALSE(matches(code, HasInitializerComplex));
172 EXPECT_TRUE(matches(code, HasInitializerSimple));
173 EXPECT_FALSE(matches(code, HasInitializerComplex));
176 EXPECT_TRUE(matches(code, HasInitializerSimple));
177 EXPECT_TRUE(matches(code, HasInitializerComplex));
183 EXPECT_TRUE(matches("void f(int a, int x);", HasParameter));
184 EXPECT_FALSE(matches("void f(int x, int a);", HasParameter));
203 EXPECT_FALSE(matches(Code, CallExpr0));
204 EXPECT_TRUE(matches(Code, CallExpr1));
207 EXPECT_TRUE(matches(Code, CallExpr0));
208 EXPECT_FALSE(matches(Code, CallExpr1));
222 EXPECT_TRUE(matches(Code, DeclDecl));
223 EXPECT_FALSE(matches(Code, NNSL));
226 EXPECT_FALSE(matches(Code, DeclDecl));
227 EXPECT_TRUE(matches(Code, NNSL));
238 EXPECT_TRUE(matches("int a;", Var));
239 EXPECT_FALSE(matches("extern int a;", Var));
240 EXPECT_TRUE(matches("class A {};", Class));
241 EXPECT_FALSE(matches("class A;", Class));
242 EXPECT_TRUE(matches("void f(){};", Func));
243 EXPECT_FALSE(matches("void f();", Func));
250 EXPECT_TRUE(matches("int Foo;", Anything));
251 EXPECT_TRUE(matches("class Foo {};", Anything));
252 EXPECT_TRUE(matches("void Foo(){};", Anything));
253 EXPECT_FALSE(matches("int Foo;", RecordDecl));
254 EXPECT_TRUE(matches("class Foo {};", RecordDecl));
255 EXPECT_FALSE(matches("void Foo(){};", RecordDecl));
266 EXPECT_FALSE(matches("class Foo { public: Foo(); };", ConstructExpr));
268 matches("class Foo { public: Foo(); }; Foo foo = Foo();", ConstructExpr));
279 EXPECT_TRUE(matches("template<typename T> class A {}; A<int> a;",
281 EXPECT_FALSE(matches("template<typename T> class A {}; A<char> a;",
290 EXPECT_FALSE(matches("int *a;", M));
291 EXPECT_TRUE(matches("int const *b;", M));
297 EXPECT_FALSE(matches("struct A{}; A a[7];;", M));
298 EXPECT_TRUE(matches("int b[7];", M));
309 EXPECT_TRUE(matches("struct Foo { Foo() : foo(1) {} int foo; };", CtorDecl));
310 EXPECT_FALSE(matches("struct Foo { Foo() {} int foo; };", CtorDecl));
311 EXPECT_FALSE(matches("struct Foo { Foo() : bar(1) {} int bar; };", CtorDecl));
322 EXPECT_TRUE(matches("class X {};", D));
323 EXPECT_TRUE(matches("class Y { class X {}; };", D));
324 EXPECT_FALSE(matches("class Y { class Z {}; };", D));
333 EXPECT_TRUE(matches("void foo() { for(int X;;); }", S));
334 EXPECT_TRUE(matches("void foo() { for(;;) { int X; } }", S));
335 EXPECT_FALSE(matches("void foo() { for(;;); }", S));
336 EXPECT_FALSE(matches("void foo() { if (int X = 0){} }", S));
341 EXPECT_TRUE(matches("void foo() { if (true) { int x = 42; } }", S));
342 EXPECT_FALSE(matches("void foo() { if (true) return; }", S));
354 EXPECT_TRUE(matches("void foo(){}", D));
355 EXPECT_TRUE(matches("struct Foo{};", D));
356 EXPECT_FALSE(matches("int i = 0;", D));
367 EXPECT_FALSE(matches("void foo(){}", D));
368 EXPECT_TRUE(matches("struct Foo{};", D));
369 EXPECT_FALSE(matches("int i = 0;", D));
370 EXPECT_TRUE(matches("class Bar{};", D));
371 EXPECT_FALSE(matches("class OtherBar{};", D));
381 EXPECT_FALSE(matches("class Bar{ int Foo; };", D));
382 EXPECT_TRUE(matches("class OtherBar{ int Foo; };", D));
388 EXPECT_TRUE(matches("void Foo(){}", D));
505 EXPECT_TRUE(matches("struct __attribute__((warn_unused)) X {};", Value));
506 EXPECT_FALSE(matches("struct X {};", Value));