4#include "clang/AST/DeclCXX.h"
26 clang::QualType q = fd->getType();
27 if (q.getAsString() ==
"class sc_core::sc_event") {
28 if (clang::IdentifierInfo *info = fd->getIdentifier()) {
43 std::vector<std::string> keys;
46 keys.push_back(vit->first);
52 os_ <<
"\n ============== FindEvents ===============";
53 os_ <<
"\n:> Print in-class sc_event data members";
56 os_ <<
"\n:> name: " << vit->first <<
", FieldDecl*: " << vit->second;
58 os_ <<
"\n ============== END FindEvents ===============";
std::map< std::string, clang::FieldDecl * > classEventMapType
typedefs
void dump()
Print methods.
std::pair< std::string, clang::FieldDecl * > kvType
classEventMapType _inClassEvents
FindEvents(clang::CXXRecordDecl *, llvm::raw_ostream &)
virtual bool VisitFieldDecl(clang::FieldDecl *)
RecursiveASTVisitor methods.
std::vector< std::string > getEventNames()
classEventMapType getInClassEvents()
Access methods.