systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindArgument.h
Go to the documentation of this file.
1#ifndef _FIND_ARGUMENT_
2#define _FIND_ARGUMENT_
3
4#include "clang/AST/RecursiveASTVisitor.h"
5
6namespace clang {
7 class Expr;
8 class MemberExpr;
9 class DeclRefExpr;
10 class IntegerLiteral;
11 class CXXBoolLiteralExpr;
12
13};
14
15namespace systemc_clang {
16
17class FindArgument : public clang::RecursiveASTVisitor<FindArgument> {
18
19public:
20 FindArgument(clang::Expr *);
21 virtual ~FindArgument();
22 virtual bool VisitMemberExpr(clang::MemberExpr *me);
23 virtual bool VisitDeclRefExpr(clang::DeclRefExpr *de);
24 virtual bool VisitIntegerLiteral(clang::IntegerLiteral *il);
25 virtual bool VisitCXXBoolLiteralExpr(clang::CXXBoolLiteralExpr *bl);
26
27
28
29 std::string getArgumentName();
30
31private:
32 clang::Expr *expression_;
33 std::string argument_name_;
34};
35} // namespace systemc_clang
36#endif
virtual bool VisitIntegerLiteral(clang::IntegerLiteral *il)
virtual bool VisitDeclRefExpr(clang::DeclRefExpr *de)
virtual bool VisitCXXBoolLiteralExpr(clang::CXXBoolLiteralExpr *bl)
virtual bool VisitMemberExpr(clang::MemberExpr *me)
Clang forward declarations.
Definition FindArgument.h:6