Home
last modified time | relevance | path

Searched refs:Visitor (Results 1 – 25 of 133) sorted by relevance

123456

/external/clang/unittests/Tooling/
DRecursiveASTVisitorTestExprVisitor.cpp26 ParenExprVisitor Visitor; in TEST() local
27 Visitor.ExpectMatch("", 1, 9); in TEST()
28 EXPECT_TRUE(Visitor.runOver("int k = (4) + 9;\n")); in TEST()
47 TemplateArgumentLocTraverser Visitor; in TEST() local
48 Visitor.ExpectMatch("X", 2, 40); in TEST()
49 EXPECT_TRUE(Visitor.runOver( in TEST()
68 CXXBoolLiteralExprVisitor Visitor; in TEST() local
69 Visitor.ExpectMatch("true", 2, 19); in TEST()
70 EXPECT_TRUE(Visitor.runOver( in TEST()
93 ImplicitCtorVisitor Visitor; in TEST() local
[all …]
DRecursiveASTVisitorTestDeclVisitor.cpp26 VarDeclVisitor Visitor; in TEST() local
27 Visitor.ExpectMatch("i", 2, 17); in TEST()
28 EXPECT_TRUE(Visitor.runOver( in TEST()
48 ParmVarDeclVisitorForImplicitCode Visitor; in TEST() local
54 Visitor.ExpectMatch("", 1, 7); in TEST()
55 Visitor.ExpectMatch("", 3, 7); in TEST()
56 EXPECT_TRUE(Visitor.runOver( in TEST()
83 NamedDeclVisitor Visitor; in TEST() local
84 Visitor.ExpectMatch("A<bool>", 1, 26); in TEST()
85 Visitor.ExpectMatch("A<char *>", 2, 26); in TEST()
[all …]
DRecursiveASTVisitorTestTypeLocVisitor.cpp26 TypeLocVisitor Visitor; in TEST() local
27 Visitor.ExpectMatch("class X", 1, 30); in TEST()
28 EXPECT_TRUE(Visitor.runOver("class X {}; class Y : public X {};")); in TEST()
32 TypeLocVisitor Visitor; in TEST() local
33 Visitor.ExpectMatch("class X", 3, 18); in TEST()
34 EXPECT_TRUE(Visitor.runOver( in TEST()
41 TypeLocVisitor Visitor; in TEST() local
42 Visitor.ExpectMatch("class X", 2, 18); in TEST()
43 EXPECT_TRUE(Visitor.runOver( in TEST()
49 TypeLocVisitor Visitor; in TEST() local
[all …]
DRecursiveASTVisitorTestCallVisitor.cpp28 CXXMemberCallVisitor Visitor; in TEST() local
29 Visitor.ExpectMatch("Y::x", 3, 3); in TEST()
30 EXPECT_TRUE(Visitor.runOver( in TEST()
39 CXXMemberCallVisitor Visitor; in TEST() local
40 Visitor.ExpectMatch("Y::x", 4, 5); in TEST()
41 EXPECT_TRUE(Visitor.runOver( in TEST()
52 CXXMemberCallVisitor Visitor; in TEST() local
53 Visitor.ExpectMatch("A::x", 5, 7); in TEST()
54 EXPECT_TRUE(Visitor.runOver( in TEST()
70 CXXMemberCallVisitor Visitor; in TEST() local
[all …]
DRecursiveASTVisitorTest.cpp42 LambdaExprVisitor Visitor; in TEST() local
43 Visitor.ExpectMatch("", 1, 12); in TEST()
44 EXPECT_TRUE(Visitor.runOver("void f() { []{ return; }(); }", in TEST()
49 LambdaExprVisitor Visitor; in TEST() local
50 EXPECT_TRUE(Visitor.runOver("void f() { []{ return; }(); }", in TEST()
52 EXPECT_TRUE(Visitor.allBodiesHaveBeenTraversed()); in TEST()
68 LambdaDefaultCaptureVisitor Visitor; in TEST() local
69 Visitor.ExpectMatch("", 1, 20); in TEST()
70 EXPECT_TRUE(Visitor.runOver("void f() { int a; [=]{a;}; }", in TEST()
94 ClassVisitor Visitor; in TEST() local
[all …]
DCommentHandlerTest.cpp70 CommentHandlerAction(CommentHandlerVisitor *Visitor) in CommentHandlerAction() argument
71 : TestAction(Visitor) { } in CommentHandlerAction()
76 static_cast<CommentHandlerVisitor*>(this->Visitor); in BeginSourceFileAction()
84 static_cast<CommentHandlerVisitor*>(this->Visitor); in EndSourceFileAction()
130 CommentHandlerVisitor Visitor; in TEST() local
131 EXPECT_TRUE(Visitor.runOver("class X {}; int main() { return 0; }")); in TEST()
132 CommentVerifier Verifier = Visitor.GetVerifier(); in TEST()
136 CommentHandlerVisitor Visitor; in TEST() local
137 EXPECT_TRUE(Visitor.runOver( in TEST()
139 CommentVerifier Verifier = Visitor.GetVerifier(); in TEST()
[all …]
DTestVisitor.h83 FindConsumer(TestVisitor *Visitor) : Visitor(Visitor) {} in FindConsumer() argument
86 Visitor->Context = &Context; in HandleTranslationUnit()
87 Visitor->TraverseDecl(Context.getTranslationUnitDecl()); in HandleTranslationUnit()
91 TestVisitor *Visitor;
96 TestAction(TestVisitor *Visitor) : Visitor(Visitor) {} in TestAction() argument
101 return llvm::make_unique<FindConsumer>(Visitor); in CreateASTConsumer()
105 TestVisitor *Visitor;
117 template <typename T, template <typename> class Visitor = TestVisitor>
118 class ExpectedLocationVisitor : public Visitor<T> {
DRefactoringTest.cpp288 FindConsumer(TestVisitor *Visitor) : Visitor(Visitor) {} in FindConsumer() argument
291 Visitor->TraverseDecl(Context.getTranslationUnitDecl()); in HandleTranslationUnit()
295 TestVisitor *Visitor; member in clang::tooling::__anonfcf95db70111::TestVisitor::FindConsumer
300 TestAction(TestVisitor *Visitor) : Visitor(Visitor) {} in TestAction() argument
305 Visitor->SM = &compiler.getSourceManager(); in CreateASTConsumer()
307 return llvm::make_unique<FindConsumer>(Visitor); in CreateASTConsumer()
311 TestVisitor *Visitor; member in clang::tooling::__anonfcf95db70111::TestVisitor::TestAction
/external/v8/src/compiler/
Dtyper.cc65 class Typer::Visitor : public NullNodeVisitor { class in v8::internal::compiler::Typer
67 Visitor(Typer* typer, MaybeHandle<Context> context) in Visitor() function in v8::internal::compiler::Typer::Visitor
118 class Typer::RunVisitor : public Typer::Visitor {
121 : Visitor(typer, context), in RunVisitor()
146 class Typer::NarrowVisitor : public Typer::Visitor {
149 : Visitor(typer, context) {} in NarrowVisitor()
171 class Typer::WidenVisitor : public Typer::Visitor {
174 : Visitor(typer, context) {} in WidenVisitor()
221 Visitor typing(this, MaybeHandle<Context>()); in Init()
233 Bounds Typer::Visitor::TypeStart(Node* node) { in TypeStart()
[all …]
Dgraph-inl.h15 template <class Visitor>
16 void Graph::VisitNodeUsesFrom(Node* node, Visitor* visitor) { in VisitNodeUsesFrom()
17 GenericGraphVisit::Visit<Visitor, NodeUseIterationTraits<Node> >( in VisitNodeUsesFrom()
22 template <class Visitor>
23 void Graph::VisitNodeUsesFromStart(Visitor* visitor) { in VisitNodeUsesFromStart()
28 template <class Visitor>
29 void Graph::VisitNodeInputsFromEnd(Visitor* visitor) { in VisitNodeInputsFromEnd()
30 GenericGraphVisit::Visit<Visitor, NodeInputIterationTraits<Node> >( in VisitNodeInputsFromEnd()
Dgraph.h58 template <class Visitor>
59 void VisitNodeUsesFrom(Node* node, Visitor* visitor);
61 template <class Visitor>
62 void VisitNodeUsesFromStart(Visitor* visitor);
64 template <class Visitor>
65 void VisitNodeInputsFromEnd(Visitor* visitor);
Dgeneric-algorithm.h39 template <class Visitor, class Traits, class RootIterator>
42 Visitor* visitor) { in Visit()
95 template <class Visitor, class Traits>
97 typename Traits::Node* current, Visitor* visitor) { in Visit()
99 Visit<Visitor, Traits>(graph, zone, &array[0], &array[1], visitor); in Visit()
/external/dexmaker/src/dx/java/com/android/dx/io/
DCodeReader.java26 private Visitor fallbackVisitor = null;
27 private Visitor stringVisitor = null;
28 private Visitor typeVisitor = null;
29 private Visitor fieldVisitor = null;
30 private Visitor methodVisitor = null;
35 public void setAllVisitors(Visitor visitor) { in setAllVisitors()
47 public void setFallbackVisitor(Visitor visitor) { in setFallbackVisitor()
54 public void setStringVisitor(Visitor visitor) { in setStringVisitor()
61 public void setTypeVisitor(Visitor visitor) { in setTypeVisitor()
68 public void setFieldVisitor(Visitor visitor) { in setFieldVisitor()
[all …]
/external/eigen/Eigen/src/Core/
DVisitor.h17 template<typename Visitor, typename Derived, int UnrollCount>
25 static inline void run(const Derived &mat, Visitor& visitor) in run()
27 visitor_impl<Visitor, Derived, UnrollCount-1>::run(mat, visitor); in run()
32 template<typename Visitor, typename Derived>
33 struct visitor_impl<Visitor, Derived, 1>
35 static inline void run(const Derived &mat, Visitor& visitor)
41 template<typename Visitor, typename Derived>
42 struct visitor_impl<Visitor, Derived, Dynamic>
45 static inline void run(const Derived& mat, Visitor& visitor)
76 template<typename Visitor>
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DStrip.java77 new TreeWizard.Visitor() { in rewrite()
82 new TreeWizard.Visitor() { in rewrite()
96 new TreeWizard.Visitor() { in rewrite()
105 new TreeWizard.Visitor() { in rewrite()
114 new TreeWizard.Visitor() { in rewrite()
121 new TreeWizard.Visitor() { in rewrite()
132 new TreeWizard.Visitor() { in rewrite()
141 new TreeWizard.Visitor() { in rewrite()
151 new TreeWizard.Visitor() { in rewrite()
162 new TreeWizard.Visitor() { in rewrite()
[all …]
/external/skia/tests/
DImageCacheTest.cpp30 static bool Visitor(const SkResourceCache::Rec& baseRec, void* context) { in Visitor() function
48 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); in test_cache()
53 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); in test_cache()
68 (void)cache.find(TestingKey(i), TestingRec::Visitor, &value); in test_cache()
85 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); in test_cache_purge_shared_id()
98 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); in test_cache_purge_shared_id()
100 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); in test_cache_purge_shared_id()
149 REPORTER_ASSERT(r, cache.find(key, TestingRec::Visitor, &value)); in DEF_TEST()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DWorkList.h83 class Visitor {
85 Visitor() {} in Visitor() function
86 virtual ~Visitor();
89 virtual bool visitItemsInWorkList(Visitor &V) = 0;
/external/v8/src/heap/
Dobjects-visiting.h156 template <typename Visitor, StaticVisitorBase::VisitorId base,
161 &Visitor::template VisitSpecialized<size>); in RegisterSpecialization()
165 template <typename Visitor, StaticVisitorBase::VisitorId base,
170 RegisterSpecialization<Visitor, base, generic, 2>(); in RegisterSpecializations()
171 RegisterSpecialization<Visitor, base, generic, 3>(); in RegisterSpecializations()
172 RegisterSpecialization<Visitor, base, generic, 4>(); in RegisterSpecializations()
173 RegisterSpecialization<Visitor, base, generic, 5>(); in RegisterSpecializations()
174 RegisterSpecialization<Visitor, base, generic, 6>(); in RegisterSpecializations()
175 RegisterSpecialization<Visitor, base, generic, 7>(); in RegisterSpecializations()
176 RegisterSpecialization<Visitor, base, generic, 8>(); in RegisterSpecializations()
[all …]
/external/skia/include/utils/
DSkTextBox.h65 class Visitor {
67 virtual ~Visitor() {} in ~Visitor()
79 SkScalar visit(Visitor&, const char text[], size_t len, const SkPaint&) const;
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp417 MatchChildASTVisitor Visitor( in matchesRecursively() local
419 return Visitor.findMatch(Node); in matchesRecursively()
535 MatchVisitor Visitor(ActiveASTContext, MP.second); in matchWithoutFilter() local
536 Builder.visitMatches(&Visitor); in matchWithoutFilter()
559 MatchVisitor Visitor(ActiveASTContext, MP.second); in matchWithFilter() local
560 Builder.visitMatches(&Visitor); in matchWithFilter()
695 class MatchVisitor : public BoundNodesTreeBuilder::Visitor {
979 internal::MatchASTVisitor Visitor(&Matchers, Options); in match() local
980 Visitor.set_active_ast_context(&Context); in match()
981 Visitor.match(Node); in match()
[all …]
/external/clang/lib/Serialization/
DModuleManager.cpp292 ModuleManager::visit(bool (*Visitor)(ModuleFile &M, void *UserData), in visit()
370 if (!Visitor(*CurrentModule, UserData)) in visit()
403 bool (*Visitor)(ModuleFile &M, bool Preorder, in visitDepthFirst()
408 if (Visitor(M, /*Preorder=*/true, UserData)) in visitDepthFirst()
419 if (visitDepthFirst(**IM, Visitor, UserData, Visited)) in visitDepthFirst()
424 return Visitor(M, /*Preorder=*/false, UserData); in visitDepthFirst()
427 void ModuleManager::visitDepthFirst(bool (*Visitor)(ModuleFile &M, bool Preorder, in visitDepthFirst()
436 if (::visitDepthFirst(*Chain[I], Visitor, UserData, Visited)) in visitDepthFirst()
/external/clang/unittests/Frontend/
DFrontendActionTest.cpp48 return llvm::make_unique<Visitor>(CI, ActOnEndOfTranslationUnit, in CreateASTConsumer()
53 class Visitor : public ASTConsumer, public RecursiveASTVisitor<Visitor> { class in __anon6de035050111::TestASTFrontendAction
55 Visitor(CompilerInstance &CI, bool ActOnEndOfTranslationUnit, in Visitor() function in __anon6de035050111::TestASTFrontendAction::Visitor
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCMissingSuperCallChecker.cpp193 FindSuperCallVisitor Visitor(S); in checkASTDecl() local
194 Visitor.TraverseDecl(MD); in checkASTDecl()
197 if (!Visitor.DoesCallSuper) { in checkASTDecl()
/external/clang/tools/libclang/
DCIndexHigh.cpp217 CXCursorAndRangeVisitor Visitor) { in findIdRefsInFile() argument
228 Visitor); in findIdRefsInFile()
311 CXCursorAndRangeVisitor Visitor) { in findMacroRefsInFile() argument
328 FindFileMacroRefVisitData data(*Unit, File, Macro, Visitor); in findMacroRefsInFile()
385 CXCursorAndRangeVisitor Visitor) { in findIncludesInFile() argument
386 assert(TU && File && Visitor.visit); in findIncludesInFile()
393 FindFileIncludesVisitor IncludesVisitor(*Unit, File, Visitor); in findIncludesInFile()
/external/skia/src/core/
DSkMaskCache.cpp57 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() function
77 if (!CHECK_LOCAL(localCache, find, Find, key, RRectBlurRec::Visitor, &result)) { in FindAndRef()
148 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() function
169 if (!CHECK_LOCAL(localCache, find, Find, key, RectsBlurRec::Visitor, &result)) { in FindAndRef()

123456