systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindConstructor.h
Go to the documentation of this file.
1#ifndef _FIND_CONSTRUCTOR_H_
2#define _FIND_CONSTRUCTOR_H_
3
5#include "clang/AST/RecursiveASTVisitor.h"
6
7namespace systemc_clang {
8
9class FindConstructor : public clang::RecursiveASTVisitor<FindConstructor> {
10 public:
11 FindConstructor(const clang::CXXRecordDecl *, llvm::raw_ostream &);
12 virtual ~FindConstructor();
13 virtual bool VisitCXXMethodDecl(clang::CXXMethodDecl *);
14 virtual bool VisitCXXConstructorDecl(clang::CXXConstructorDecl *ctor_decl);
16
17 const clang::CXXRecordDecl *getAsCXXRecordDecl() const;
18 clang::CXXConstructorDecl *getConstructorDecl() const;
19 clang::Stmt *getConstructorStmt() const;
20 void dump() const;
21
22 private:
23 llvm::raw_ostream &os_;
24 const clang::CXXRecordDecl *declaration_;
25 clang::CXXConstructorDecl *constructor_decl_;
26 clang::Stmt *constructor_stmt_;
27 unsigned int pass_;
28
29 // Private constructor
30 FindConstructor(llvm::raw_ostream &);
31};
32} // namespace systemc_clang
33#endif
A container class to hold entry function information.
FindConstructor(const clang::CXXRecordDecl *, llvm::raw_ostream &)
const clang::CXXRecordDecl * declaration_
const clang::CXXRecordDecl * getAsCXXRecordDecl() const
FindConstructor(llvm::raw_ostream &)
clang::CXXConstructorDecl * getConstructorDecl() const
clang::Stmt * getConstructorStmt() const
virtual bool VisitCXXConstructorDecl(clang::CXXConstructorDecl *ctor_decl)
clang::CXXConstructorDecl * constructor_decl_
virtual bool VisitCXXMethodDecl(clang::CXXMethodDecl *)