• Home
  • Raw
  • Download

Lines Matching refs:matches

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