systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindGlobalEvents.h
Go to the documentation of this file.
1#ifndef _FIND_GLOBAL_EVENTS_H_
2#define _FIND_GLOBAL_EVENTS_H_
3//#include "systemc-clang.h"
4
5#include "clang/AST/RecursiveASTVisitor.h"
6#include "llvm/Support/raw_ostream.h"
7
8#include <map>
9#include <string>
10#include <vector>
11
13namespace clang {
14class VarDecl;
15class TranslationUnitDecl;
16};
17
18namespace systemc_clang {
19
20class FindGlobalEvents : public clang::RecursiveASTVisitor<FindGlobalEvents> {
21 public:
22 typedef std::map<std::string, clang::VarDecl *> globalEventMapType;
23 typedef std::pair<std::string, clang::VarDecl *> kvType;
24
25 FindGlobalEvents(clang::TranslationUnitDecl *, llvm::raw_ostream &);
26 virtual ~FindGlobalEvents();
27
28 virtual bool VisitVarDecl(clang::VarDecl *);
29
31 std::vector<std::string> getEventNames();
32
33 void dump();
34 std::string asString() const;
35
36 private:
37 llvm::raw_ostream &_os;
39};
40} // namespace systemc_clang
41#endif
std::vector< std::string > getEventNames()
FindGlobalEvents(clang::TranslationUnitDecl *, llvm::raw_ostream &)
virtual bool VisitVarDecl(clang::VarDecl *)
std::map< std::string, clang::VarDecl * > globalEventMapType
std::pair< std::string, clang::VarDecl * > kvType
Clang forward declarations.
Definition FindArgument.h:6