systemc-clang
2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
src
matchers
FindConstructor.h
Go to the documentation of this file.
1
#ifndef _FIND_CONSTRUCTOR_H_
2
#define _FIND_CONSTRUCTOR_H_
3
4
#include "
EntryFunctionContainer.h
"
5
#include "clang/AST/RecursiveASTVisitor.h"
6
7
namespace
systemc_clang
{
8
9
class
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);
15
bool
shouldVisitTemplateInstantiations
()
const
;
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
EntryFunctionContainer.h
A container class to hold entry function information.
systemc_clang::FindConstructor
Definition
FindConstructor.h:9
systemc_clang::FindConstructor::FindConstructor
FindConstructor(const clang::CXXRecordDecl *, llvm::raw_ostream &)
Definition
FindConstructor.cpp:5
systemc_clang::FindConstructor::declaration_
const clang::CXXRecordDecl * declaration_
Definition
FindConstructor.h:24
systemc_clang::FindConstructor::pass_
unsigned int pass_
Definition
FindConstructor.h:27
systemc_clang::FindConstructor::shouldVisitTemplateInstantiations
bool shouldVisitTemplateInstantiations() const
Definition
FindConstructor.cpp:22
systemc_clang::FindConstructor::getAsCXXRecordDecl
const clang::CXXRecordDecl * getAsCXXRecordDecl() const
Definition
FindConstructor.cpp:63
systemc_clang::FindConstructor::~FindConstructor
virtual ~FindConstructor()
Definition
FindConstructor.cpp:17
systemc_clang::FindConstructor::FindConstructor
FindConstructor(llvm::raw_ostream &)
systemc_clang::FindConstructor::getConstructorDecl
clang::CXXConstructorDecl * getConstructorDecl() const
Definition
FindConstructor.cpp:59
systemc_clang::FindConstructor::constructor_stmt_
clang::Stmt * constructor_stmt_
Definition
FindConstructor.h:26
systemc_clang::FindConstructor::getConstructorStmt
clang::Stmt * getConstructorStmt() const
Definition
FindConstructor.cpp:67
systemc_clang::FindConstructor::VisitCXXConstructorDecl
virtual bool VisitCXXConstructorDecl(clang::CXXConstructorDecl *ctor_decl)
Definition
FindConstructor.cpp:24
systemc_clang::FindConstructor::constructor_decl_
clang::CXXConstructorDecl * constructor_decl_
Definition
FindConstructor.h:25
systemc_clang::FindConstructor::os_
llvm::raw_ostream & os_
Definition
FindConstructor.h:23
systemc_clang::FindConstructor::VisitCXXMethodDecl
virtual bool VisitCXXMethodDecl(clang::CXXMethodDecl *)
Definition
FindConstructor.cpp:31
systemc_clang::FindConstructor::dump
void dump() const
Definition
FindConstructor.cpp:71
systemc_clang
Definition
SplitCFG.h:10
Generated by
1.12.0