#include <FindSCMain.h>
Definition at line 14 of file FindSCMain.h.
◆ FindSCMain()
FindSCMain::FindSCMain |
( |
clang::TranslationUnitDecl * | tuDecl, |
|
|
llvm::raw_ostream & | os ) |
◆ ~FindSCMain()
FindSCMain::~FindSCMain |
( |
| ) |
|
|
virtual |
◆ getSCMainFunctionDecl()
clang::FunctionDecl * FindSCMain::getSCMainFunctionDecl |
( |
| ) |
const |
◆ isSCMainFound()
bool FindSCMain::isSCMainFound |
( |
| ) |
const |
◆ VisitFunctionDecl()
bool FindSCMain::VisitFunctionDecl |
( |
clang::FunctionDecl * | decl | ) |
|
|
virtual |
Find sc_main. There are three conditions to satisfy this:
- Must have sc_main in its name.
- Must have a body
- Must not be a first declaration. (This is becuase systemc.h includes a null definition of sc_main.
Definition at line 16 of file FindSCMain.cpp.
◆ os_
llvm::raw_ostream& systemc_clang::FindSCMain::os_ |
|
private |
◆ sc_main_function_declaration_
clang::FunctionDecl* systemc_clang::FindSCMain::sc_main_function_declaration_ |
|
private |
The documentation for this class was generated from the following files: