systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindSCMain.h
Go to the documentation of this file.
1#ifndef _FIND_SCMAIN_H_
2#define _FIND_SCMAIN_H_
3
4#include "clang/AST/RecursiveASTVisitor.h"
5#include "llvm/Support/raw_ostream.h"
6
7namespace clang {
8class FunctionDecl;
9class TranslationUnitDecl;
10
11}; // namespace clang
12
13namespace systemc_clang {
14class FindSCMain : public clang::RecursiveASTVisitor<FindSCMain> {
15 public:
16 FindSCMain(clang::TranslationUnitDecl *, llvm::raw_ostream &);
17 virtual ~FindSCMain();
18 virtual bool VisitFunctionDecl(clang::FunctionDecl *decl);
19
20 clang::FunctionDecl *getSCMainFunctionDecl() const;
21 bool isSCMainFound() const;
22
23 private:
24 llvm::raw_ostream &os_;
25 clang::FunctionDecl *sc_main_function_declaration_;
26};
27} // namespace systemc_clang
28#endif
llvm::raw_ostream & os_
Definition FindSCMain.h:24
clang::FunctionDecl * getSCMainFunctionDecl() const
virtual bool VisitFunctionDecl(clang::FunctionDecl *decl)
FindSCMain(clang::TranslationUnitDecl *, llvm::raw_ostream &)
Definition FindSCMain.cpp:7
clang::FunctionDecl * sc_main_function_declaration_
Definition FindSCMain.h:25
Clang forward declarations.
Definition FindArgument.h:6