OmniSciDB  8a228a1076
anonymous_namespace{UDFCompiler.cpp}::DeclASTConsumer Class Reference
+ Inheritance diagram for anonymous_namespace{UDFCompiler.cpp}::DeclASTConsumer:
+ Collaboration diagram for anonymous_namespace{UDFCompiler.cpp}::DeclASTConsumer:

Public Member Functions

 DeclASTConsumer (llvm::raw_fd_ostream &ast_file, SourceManager &s_manager, ASTContext &context)
 
bool HandleTopLevelDecl (DeclGroupRef decl_reference) override
 

Private Attributes

FunctionDeclVisitor visitor_
 

Detailed Description

Definition at line 96 of file UDFCompiler.cpp.

Constructor & Destructor Documentation

◆ DeclASTConsumer()

anonymous_namespace{UDFCompiler.cpp}::DeclASTConsumer::DeclASTConsumer ( llvm::raw_fd_ostream &  ast_file,
SourceManager &  s_manager,
ASTContext &  context 
)
inline

Definition at line 98 of file UDFCompiler.cpp.

101  : visitor_(ast_file, s_manager, context) {}

Member Function Documentation

◆ HandleTopLevelDecl()

bool anonymous_namespace{UDFCompiler.cpp}::DeclASTConsumer::HandleTopLevelDecl ( DeclGroupRef  decl_reference)
inlineoverride

Definition at line 105 of file UDFCompiler.cpp.

105  {
106  for (DeclGroupRef::iterator b = decl_reference.begin(), e = decl_reference.end();
107  b != e;
108  ++b) {
109  // Traverse the declaration using our AST visitor.
110  visitor_.TraverseDecl(*b);
111  }
112  return true;
113  }

Member Data Documentation

◆ visitor_

FunctionDeclVisitor anonymous_namespace{UDFCompiler.cpp}::DeclASTConsumer::visitor_
private

Definition at line 116 of file UDFCompiler.cpp.


The documentation for this class was generated from the following file: