systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindNotify.h
Go to the documentation of this file.
1#ifndef _FIND_NOTIFY_H_
2#define _FIND_NOTIFY_H_
3
4//#include "clang/AST/DeclCXX.h"
5#include "clang/AST/RecursiveASTVisitor.h"
6#include "llvm/Support/raw_ostream.h"
7
8namespace clang {
9 class CXXMethodDecl;
10 class CallExpr;
11
12};
13
14
15
16namespace systemc_clang {
17
18class FindNotify : public clang::RecursiveASTVisitor<FindNotify> {
19 public:
20 using NotifyCallListType = std::vector<clang::CallExpr *>;
21
22 FindNotify(clang::CXXMethodDecl *, llvm::raw_ostream &);
23 virtual ~FindNotify();
24
25 virtual bool VisitCallExpr(clang::CallExpr *expr);
27
29 clang::CXXMethodDecl *getEntryMethod() const;
30
31 void dump() const;
32
33 private:
34 clang::CXXMethodDecl *entry_method_decl_;
35 llvm::raw_ostream &os_;
36 clang::CallExpr *notify_call_;
38};
39} // namespace systemc_clang
40#endif
std::vector< clang::CallExpr * > NotifyCallListType
Definition FindNotify.h:20
clang::CXXMethodDecl * entry_method_decl_
Definition FindNotify.h:34
bool shouldVisitTemplateInstantiations() const
NotifyCallListType notify_call_list_
Definition FindNotify.h:37
FindNotify(clang::CXXMethodDecl *, llvm::raw_ostream &)
virtual bool VisitCallExpr(clang::CallExpr *expr)
llvm::raw_ostream & os_
Definition FindNotify.h:35
clang::CXXMethodDecl * getEntryMethod() const
clang::CallExpr * notify_call_
Definition FindNotify.h:36
NotifyCallListType getNotifyCallList() const
Clang forward declarations.
Definition FindArgument.h:6