• Home
  • Raw
  • Download

Lines Matching refs:Visitor

162   ParmVarDeclVisitorForImplicitCode Visitor;  in TEST()  local
168 Visitor.ExpectMatch("", 1, 7); in TEST()
169 Visitor.ExpectMatch("", 3, 7); in TEST()
170 EXPECT_TRUE(Visitor.runOver( in TEST()
178 TypeLocVisitor Visitor; in TEST() local
179 Visitor.ExpectMatch("class X", 1, 30); in TEST()
180 EXPECT_TRUE(Visitor.runOver("class X {}; class Y : public X {};")); in TEST()
184 TypeLocVisitor Visitor; in TEST() local
185 Visitor.ExpectMatch("class X", 3, 18); in TEST()
186 EXPECT_TRUE(Visitor.runOver( in TEST()
193 TypeLocVisitor Visitor; in TEST() local
194 Visitor.ExpectMatch("class X", 2, 18); in TEST()
195 EXPECT_TRUE(Visitor.runOver( in TEST()
201 TypeLocVisitor Visitor; in TEST() local
202 Visitor.ExpectMatch("X<class Y>", 2, 18); in TEST()
203 EXPECT_TRUE(Visitor.runOver( in TEST()
209 DeclRefExprVisitor Visitor; in TEST() local
210 Visitor.ExpectMatch("x", 2, 3); in TEST()
211 EXPECT_TRUE(Visitor.runOver( in TEST()
216 DeclRefExprVisitor Visitor; in TEST() local
217 Visitor.ExpectMatch("x", 2, 25); in TEST()
218 Visitor.ExpectMatch("x", 2, 30); in TEST()
219 EXPECT_TRUE(Visitor.runOver( in TEST()
226 VarDeclVisitor Visitor; in TEST() local
227 Visitor.ExpectMatch("i", 2, 17); in TEST()
228 EXPECT_TRUE(Visitor.runOver( in TEST()
235 DeclRefExprVisitor Visitor; in TEST() local
236 Visitor.ExpectMatch("x", 1, 22); in TEST()
237 EXPECT_TRUE(Visitor.runOver( in TEST()
242 CXXMemberCallVisitor Visitor; in TEST() local
243 Visitor.ExpectMatch("Y::x", 3, 3); in TEST()
244 EXPECT_TRUE(Visitor.runOver( in TEST()
253 CXXMemberCallVisitor Visitor; in TEST() local
254 Visitor.ExpectMatch("Y::x", 4, 5); in TEST()
255 EXPECT_TRUE(Visitor.runOver( in TEST()
266 CXXMemberCallVisitor Visitor; in TEST() local
267 Visitor.ExpectMatch("A::x", 5, 7); in TEST()
268 EXPECT_TRUE(Visitor.runOver( in TEST()
296 CXXMemberCallVisitor Visitor; in TEST() local
297 Visitor.ExpectMatch("A::x", 6, 20); in TEST()
298 EXPECT_TRUE(Visitor.runOver( in TEST()
313 CXXMemberCallVisitor Visitor; in TEST() local
314 Visitor.ExpectMatch("A::f", 4, 5); in TEST()
315 EXPECT_TRUE(Visitor.runOver( in TEST()
331 NamedDeclVisitor Visitor; in TEST() local
332 Visitor.ExpectMatch("A<bool>", 1, 26); in TEST()
333 Visitor.ExpectMatch("A<char *>", 2, 26); in TEST()
334 EXPECT_TRUE(Visitor.runOver( in TEST()
342 NamedDeclVisitor Visitor; in TEST() local
343 Visitor.ExpectMatch("A<int>", 1, 29); in TEST()
344 EXPECT_TRUE(Visitor.runOver( in TEST()
350 NamedDeclVisitor Visitor; in TEST() local
351 Visitor.ExpectMatch("A<int>::B<char>", 2, 31); in TEST()
352 EXPECT_TRUE(Visitor.runOver( in TEST()
360 NamedDeclVisitor Visitor; in TEST() local
361 Visitor.ExpectMatch("A<int>", 1, 26); in TEST()
362 EXPECT_TRUE(Visitor.runOver( in TEST()
368 NamedDeclVisitor Visitor; in TEST() local
369 Visitor.ExpectMatch("A<int>::B<char>", 2, 35); in TEST()
370 EXPECT_TRUE(Visitor.runOver( in TEST()
379 NamedDeclVisitor Visitor; in TEST() local
380 Visitor.ExpectMatch("vector_iterator<int>", 2, 7); in TEST()
381 EXPECT_TRUE(Visitor.runOver( in TEST()
390 CXXOperatorCallExprTraverser Visitor; in TEST() local
391 Visitor.ExpectMatch("()", 4, 9); in TEST()
392 EXPECT_TRUE(Visitor.runOver( in TEST()
400 ParenExprVisitor Visitor; in TEST() local
401 Visitor.ExpectMatch("", 1, 9); in TEST()
402 EXPECT_TRUE(Visitor.runOver("int k = (4) + 9;\n")); in TEST()
406 CXXBoolLiteralExprVisitor Visitor; in TEST() local
407 Visitor.ExpectMatch("true", 2, 19); in TEST()
408 EXPECT_TRUE(Visitor.runOver( in TEST()
415 TypeLocVisitor Visitor; in TEST() local
416 Visitor.ExpectMatch("class X", 2, 23); in TEST()
417 EXPECT_TRUE(Visitor.runOver( in TEST()
424 TemplateArgumentLocTraverser Visitor; in TEST() local
425 Visitor.ExpectMatch("X", 2, 40); in TEST()
426 EXPECT_TRUE(Visitor.runOver( in TEST()
449 ImplicitCtorVisitor Visitor; in TEST() local
450 Visitor.ExpectMatch("Simple", 2, 8); in TEST()
453 EXPECT_TRUE(Visitor.runOver( in TEST()
490 ConstructExprVisitor Visitor; in TEST() local
491 Visitor.setShouldVisitImplicitCode(true); in TEST()
492 Visitor.ExpectMatch("WithCtor", 2, 8); in TEST()
497 EXPECT_TRUE(Visitor.runOver( in TEST()
506 ConstructExprVisitor Visitor; in TEST() local
507 Visitor.setShouldVisitImplicitCode(false); in TEST()
508 Visitor.DisallowMatch("WithCtor", 2, 8); in TEST()
513 EXPECT_TRUE(Visitor.runOver( in TEST()
520 DeclRefExprVisitor Visitor; in TEST() local
521 Visitor.ExpectMatch("s", 1, 24); in TEST()
522 EXPECT_TRUE(Visitor.runOver( in TEST()
527 TypeLocVisitor Visitor; in TEST() local
528 Visitor.ExpectMatch("struct S", 1, 26); in TEST()
529 EXPECT_TRUE(Visitor.runOver( in TEST()
535 TypeLocVisitor Visitor; in TEST() local
536 Visitor.ExpectMatch("NSNumber", 2, 33); in TEST()
537 EXPECT_TRUE(Visitor.runOver( in TEST()
544 LambdaExprVisitor Visitor; in TEST() local
545 Visitor.ExpectMatch("", 1, 12); in TEST()
546 EXPECT_TRUE(Visitor.runOver("void f() { []{ return; }(); }", in TEST()
551 LambdaExprVisitor Visitor; in TEST() local
552 EXPECT_TRUE(Visitor.runOver("void f() { []{ return; }(); }", in TEST()
554 EXPECT_TRUE(Visitor.allBodiesHaveBeenTraversed()); in TEST()
558 LambdaDefaultCaptureVisitor Visitor; in TEST() local
559 Visitor.ExpectMatch("", 1, 20); in TEST()
560 EXPECT_TRUE(Visitor.runOver("void f() { int a; [=]{a;}; }", in TEST()
565 DeclRefExprVisitor Visitor; in TEST() local
566 Visitor.ExpectMatch("x", 3, 24); in TEST()
567 EXPECT_TRUE(Visitor.runOver("void f(int(^)(int)); \n" in TEST()
594 ClassVisitor Visitor; in TEST() local
595 EXPECT_TRUE(Visitor.runOver("auto lambda = []{};", in TEST()
597 EXPECT_TRUE(Visitor.sawOnlyImplicitLambdaClasses()); in TEST()
622 AttrVisitor Visitor; in TEST() local
623 Visitor.ExpectMatch("Attr", 4, 24); in TEST()
624 Visitor.ExpectMatch("guarded_by", 4, 24); in TEST()
625 Visitor.ExpectMatch("mu1", 4, 35); in TEST()
626 Visitor.ExpectMatch("Attr", 5, 29); in TEST()
627 Visitor.ExpectMatch("mu1", 5, 54); in TEST()
628 Visitor.ExpectMatch("mu2", 5, 59); in TEST()
629 EXPECT_TRUE(Visitor.runOver( in TEST()