clang API Documentation
ASTConsumer to consume model files' AST. More...
#include <ModelConsumer.h>
Public Member Functions | |
ModelConsumer (llvm::StringMap< Stmt * > &Bodies) | |
bool | HandleTopLevelDecl (DeclGroupRef D) override |
ASTConsumer to consume model files' AST.
This consumer collects the bodies of function definitions into a StringMap from a model file.
Definition at line 32 of file ModelConsumer.h.
ModelConsumer::ModelConsumer | ( | llvm::StringMap< Stmt * > & | Bodies | ) |
Definition at line 29 of file ModelConsumer.cpp.
bool ModelConsumer::HandleTopLevelDecl | ( | DeclGroupRef | D | ) | [override, virtual] |
HandleTopLevelDecl - Handle the specified top-level declaration. This is called by the parser to process every top-level Decl*.
Reimplemented from clang::ASTConsumer.
Definition at line 32 of file ModelConsumer.cpp.
References clang::DeclGroupRef::begin(), clang::DeclGroupRef::end(), clang::FunctionDecl::getBody(), clang::NamedDecl::getName(), and clang::FunctionDecl::hasBody().