Home
last modified time | relevance | path

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

12345678910>>...21

/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 …]
DLookupTest.cpp33 GetDeclsVisitor Visitor; in TEST() local
40 Callee->getQualifier(), Visitor.DeclStack.back()->getDeclContext(), FD, in TEST()
44 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
47 Visitor.runOver("namespace a { void foo(); }\n" in TEST()
50 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
53 Visitor.runOver("namespace a { void foo(); }\n" in TEST()
56 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
59 Visitor.runOver("namespace a { void foo(); }\n" in TEST()
62 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
65 Visitor.runOver("namespace a { void foo(); }\n" in TEST()
[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 …]
DQualTypeNamesTest.cpp48 TypeNameVisitor Visitor; in TEST() local
50 Visitor.ExpectedQualTypeNames["CheckInt"] = "int"; in TEST()
57 Visitor.ExpectedQualTypeNames["CheckA"] = "A::B::Class0"; in TEST()
62 Visitor.ExpectedQualTypeNames["CheckB"] = "A::B::C::Class1"; in TEST()
64 Visitor.ExpectedQualTypeNames["CheckC"] = in TEST()
67 Visitor.ExpectedQualTypeNames["CheckD"] = in TEST()
71 Visitor.ExpectedQualTypeNames["CheckE"] = in TEST()
75 Visitor.ExpectedQualTypeNames["CheckF"] = "A::B::Class0"; in TEST()
78 Visitor.ExpectedQualTypeNames["CheckG"] = "A::B::C::MyInt"; in TEST()
80 Visitor.ExpectedQualTypeNames["CheckH"] = "struct X"; in TEST()
[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 …]
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()
134 CommentHandlerVisitor Visitor; in TEST() local
135 EXPECT_TRUE(Visitor.runOver("class X {}; int main() { return 0; }")); in TEST()
136 CommentVerifier Verifier = Visitor.GetVerifier(); in TEST()
140 CommentHandlerVisitor Visitor; in TEST() local
141 EXPECT_TRUE(Visitor.runOver( in TEST()
143 CommentVerifier Verifier = Visitor.GetVerifier(); in TEST()
[all …]
DFixItTest.cpp36 CallsVisitor Visitor; in TEST() local
38 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
47 Visitor.runOver("void foo(int x, int y) { foo(x, y); }"); in TEST()
49 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
52 Visitor.runOver("#define APPLY(f, x, y) f(x, y)\n" in TEST()
57 CallsVisitor Visitor; in TEST() local
59 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
66 Visitor.runOver("#define F foo(\n" in TEST()
70 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
77 Visitor.runOver("#define FOO(x, y) (void)x; (void)y; foo(x, y);\n" 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> {
/external/v8/src/compiler/
Dtyper.cc57 class Typer::Visitor : public Reducer { class in v8::internal::compiler::Typer
59 explicit Visitor(Typer* typer, LoopVariableOptimizer* induction_vars) in Visitor() function in v8::internal::compiler::Typer::Visitor
353 Visitor visitor(this, induction_vars); in Run()
370 Visitor typing(typer_, nullptr); in Decorate()
388 Type Typer::Visitor::TypeUnaryOp(Node* node, UnaryTyperFun f) { in TypeUnaryOp()
393 Type Typer::Visitor::TypeBinaryOp(Node* node, BinaryTyperFun f) { in TypeBinaryOp()
400 Type Typer::Visitor::BinaryNumberOpTyper(Type lhs, Type rhs, Typer* t, in BinaryNumberOpTyper()
418 Typer::Visitor::ComparisonOutcome Typer::Visitor::Invert( in Invert()
427 Type Typer::Visitor::FalsifyUndefined(ComparisonOutcome outcome, Typer* t) { in FalsifyUndefined()
438 Type Typer::Visitor::BitwiseNot(Type type, Typer* t) { in BitwiseNot()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/
DTypeVisitorCallbackPipeline.h27 for (auto Visitor : Pipeline) { in visitUnknownType() local
28 if (auto EC = Visitor->visitUnknownType(Record)) in visitUnknownType()
35 for (auto Visitor : Pipeline) { in visitUnknownMember() local
36 if (auto EC = Visitor->visitUnknownMember(Record)) in visitUnknownMember()
43 for (auto Visitor : Pipeline) { in visitTypeBegin() local
44 if (auto EC = Visitor->visitTypeBegin(Record)) in visitTypeBegin()
51 for (auto Visitor : Pipeline) { in visitTypeBegin() local
52 if (auto EC = Visitor->visitTypeBegin(Record, Index)) in visitTypeBegin()
59 for (auto Visitor : Pipeline) { in visitTypeEnd() local
60 if (auto EC = Visitor->visitTypeEnd(Record)) in visitTypeEnd()
[all …]
DSymbolVisitorCallbackPipeline.h26 for (auto Visitor : Pipeline) { in visitUnknownSymbol() local
27 if (auto EC = Visitor->visitUnknownSymbol(Record)) in visitUnknownSymbol()
34 for (auto Visitor : Pipeline) { in visitSymbolBegin() local
35 if (auto EC = Visitor->visitSymbolBegin(Record, Offset)) in visitSymbolBegin()
42 for (auto Visitor : Pipeline) { in visitSymbolBegin() local
43 if (auto EC = Visitor->visitSymbolBegin(Record)) in visitSymbolBegin()
50 for (auto Visitor : Pipeline) { in visitSymbolEnd() local
51 if (auto EC = Visitor->visitSymbolEnd(Record)) in visitSymbolEnd()
63 for (auto Visitor : Pipeline) { \
64 if (auto EC = Visitor->visitKnownRecord(CVR, Record)) \
/external/v8/tools/clang/blink_gc_plugin/tests/
Dfinalize_after_dispatch.h14 void Trace(Visitor*);
15 void TraceAfterDispatch(Visitor*);
21 void Trace(Visitor*);
28 void Trace(Visitor*) { }; in Trace() argument
29 void TraceAfterDispatch(Visitor*) { }; in TraceAfterDispatch() argument
35 void Trace(Visitor*);
36 void TraceAfterDispatch(Visitor*);
49 void TraceAfterDispatch(Visitor*);
57 void TraceAfterDispatch(Visitor*);
71 void TraceAfterDispatch(Visitor*);
Dtrace_after_dispatch_impl_error.h14 void Trace(Visitor*) {} in Trace() argument
26 void Trace(Visitor*);
28 void TraceAfterDispatch(Visitor* visitor) { in TraceAfterDispatch()
41 void TraceAfterDispatch(Visitor* visitor) { in TraceAfterDispatch()
54 void Trace(Visitor* visitor);
56 void TraceAfterDispatch(Visitor* visitor);
67 void TraceAfterDispatch(Visitor* visitor);
Dtrace_after_dispatch_impl.h14 void Trace(Visitor*) {} in Trace() argument
26 void Trace(Visitor*);
28 void TraceAfterDispatch(Visitor* visitor) { visitor->Trace(x_base_); } in TraceAfterDispatch()
39 void TraceAfterDispatch(Visitor* visitor) { in TraceAfterDispatch()
53 void Trace(Visitor* visitor);
55 void TraceAfterDispatch(Visitor* visitor);
66 void TraceAfterDispatch(Visitor* visitor);
Dclass_requires_finalization_field.h14 virtual void Trace(Visitor*) { } in Trace() argument
21 void Trace(Visitor*) { }; in Trace() argument
27 void Trace(Visitor*) { }; in Trace() argument
37 void Trace(Visitor*);
46 void Trace(Visitor*);
54 void Trace(Visitor*);
Dtraceimpl_error.h14 virtual void Trace(Visitor*) {} in Trace() argument
20 void Trace(Visitor* visitor) { in Trace()
31 void Trace(Visitor* visitor);
39 virtual void Trace(Visitor*) {} in Trace() argument
44 void Trace(Visitor* visitor) override { in Trace()
51 void Trace(Visitor*) override;
Dtraceimpl.h14 virtual void Trace(Visitor*) {} in Trace() argument
19 void Trace(Visitor* visitor) { visitor->Trace(x_); } in Trace()
27 void Trace(Visitor* visitor);
35 virtual void Trace(Visitor* visitor) {} in Trace()
40 void Trace(Visitor* visitor) override { Base::Trace(visitor); } in Trace()
45 void Trace(Visitor* visitor) override;
Dclass_requires_finalization_mixin.cpp9 void MixinFinalizable::Trace(Visitor* visitor) in Trace()
14 void MixinNotFinalizable::Trace(Visitor* visitor) in Trace()
19 void NeedsFinalizer::Trace(Visitor* visitor) in Trace()
25 void HasFinalizer::Trace(Visitor* visitor) in Trace()
31 void NeedsNoFinalization::Trace(Visitor* visitor) in Trace()
Dtrace_after_dispatch.cpp11 void A::Trace(Visitor* visitor) in Trace()
26 void A::TraceAfterDispatch(Visitor* visitor) in TraceAfterDispatch()
30 void B::TraceAfterDispatch(Visitor* visitor) in TraceAfterDispatch()
38 void C::TraceAfterDispatch(Visitor* visitor) in TraceAfterDispatch()
44 void D::TraceAfterDispatch(Visitor* visitor) in TraceAfterDispatch()
/external/clang/unittests/AST/
DPostOrderASTVisitor.cpp86 RecordingVisitor Visitor(true); in TEST() local
87 Visitor.TraverseTranslationUnitDecl(TU); in TEST()
94 ASSERT_EQ(expected.size(), Visitor.VisitedNodes.size()); in TEST()
96 ASSERT_EQ(expected[I], Visitor.VisitedNodes[I]); in TEST()
111 RecordingVisitor Visitor(false); in TEST() local
112 Visitor.TraverseTranslationUnitDecl(TU); in TEST()
119 ASSERT_EQ(expected.size(), Visitor.VisitedNodes.size()); in TEST()
121 ASSERT_EQ(expected[I], Visitor.VisitedNodes[I]); in TEST()
/external/eigen/Eigen/src/Core/
DVisitor.h17 template<typename Visitor, typename Derived, int UnrollCount>
26 static inline void run(const Derived &mat, Visitor& visitor) in run()
28 visitor_impl<Visitor, Derived, UnrollCount-1>::run(mat, visitor); in run()
33 template<typename Visitor, typename Derived>
34 struct visitor_impl<Visitor, Derived, 1>
37 static inline void run(const Derived &mat, Visitor& visitor)
43 template<typename Visitor, typename Derived>
44 struct visitor_impl<Visitor, Derived, Dynamic>
47 static inline void run(const Derived& mat, Visitor& visitor)
105 template<typename Visitor>
[all …]
/external/turbine/java/com/google/turbine/tree/
DTree.java36 public abstract <I, O> O accept(Visitor<I, O> visitor, I input); in accept()
104 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
157 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
195 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
224 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
243 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
276 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
317 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
347 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
377 public <I, O> O accept(Visitor<I, O> visitor, I input) { in accept()
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DStrip.java77 new TreeWizard.Visitor() { in rewrite()
83 new TreeWizard.Visitor() { in rewrite()
98 new TreeWizard.Visitor() { in rewrite()
108 new TreeWizard.Visitor() { in rewrite()
118 new TreeWizard.Visitor() { in rewrite()
126 new TreeWizard.Visitor() { in rewrite()
138 new TreeWizard.Visitor() { in rewrite()
148 new TreeWizard.Visitor() { in rewrite()
159 new TreeWizard.Visitor() { in rewrite()
171 new TreeWizard.Visitor() { in rewrite()
[all …]

12345678910>>...21