Class ModuleDeclarationMatcher

Inheritance Relationships

Base Type

  • public MatchCallback

Class Documentation

class sc_ast_matchers::ModuleDeclarationMatcher : public MatchCallback

Class ModuleDeclarationMatcher.

Public Types

typedef std::vector<InstanceMatcher::InstanceDeclType> InstanceListType
typedef std::pair<clang::CXXRecordDecl*, ModuleInstance*> ModulePairType

This will store all the modules as ModuleDecl.

typedef std::multimap<clang::CXXRecordDecl*, ModuleInstance*> ModuleMapType

Public Functions

inline const InstanceMatcher &getInstanceMatcher()
inline void registerMatchers(MatchFinder &finder)

Register the matchers.

inline virtual void run(const MatchFinder::MatchResult &result)
inline const ModuleMapType &getFoundModuleDeclarations() const
inline void pruneMatches(ASTContext &context)
inline void dump()