systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
sc_ast_matchers::CallerCalleeMatcher Class Reference

#include <SensitivityMatcher.h>

Inheritance diagram for sc_ast_matchers::CallerCalleeMatcher:
Collaboration diagram for sc_ast_matchers::CallerCalleeMatcher:

Public Member Functions

CallerCalleeType getCallerCallee () const
 This returns a list of all the caller and callees that are identified.
 
void registerMatchers (MatchFinder &finder, clang::VarDecl *vd)
 Register the matchers to identify caller and callees.
 
virtual void run (const MatchFinder::MatchResult &result)
 This is the callback function when there is a match.
 
void dump ()
 Dump out the caller and callee found in the sensitivity list.
 

Private Types

typedef std::vector< std::tuple< std::string, clang::ValueDecl *, clang::MemberExpr *, clang::VarDecl *, clang::ArraySubscriptExpr *, clang::ForStmt * > > CallerCalleeType
 

Private Attributes

std::vector< std::tuple< std::string, clang::ValueDecl *, clang::MemberExpr *, clang::VarDecl *, clang::ArraySubscriptExpr *, clang::ForStmt * > > calls_
 Store the information.
 
clang::VarDecl * vd_
 

Detailed Description

Class CallerCaleeMatcher

This class identifies for a method call, who is the caller, and who is the callee.

Definition at line 42 of file SensitivityMatcher.h.

Member Typedef Documentation

◆ CallerCalleeType

std::vector< std::tuple<std::string, clang::ValueDecl *, clang::MemberExpr *, clang::VarDecl *, clang::ArraySubscriptExpr *, clang::ForStmt*> > sc_ast_matchers::CallerCalleeMatcher::CallerCalleeType
private
  1. name
  2. FieldDecl/VarDecl = ValueDecl. Pointer to field declaration.
  3. The MemberExpr from where I got this information.

Definition at line 50 of file SensitivityMatcher.h.

Member Function Documentation

◆ dump()

void sc_ast_matchers::CallerCalleeMatcher::dump ( )
inline

Dump out the caller and callee found in the sensitivity list.

Definition at line 89 of file SensitivityMatcher.h.

◆ getCallerCallee()

CallerCalleeType sc_ast_matchers::CallerCalleeMatcher::getCallerCallee ( ) const
inline

This returns a list of all the caller and callees that are identified.

Definition at line 61 of file SensitivityMatcher.h.

◆ registerMatchers()

void sc_ast_matchers::CallerCalleeMatcher::registerMatchers ( MatchFinder & finder,
clang::VarDecl * vd )
inline

Register the matchers to identify caller and callees.

This is the matcher that finds all the member expressions..

Definition at line 64 of file SensitivityMatcher.h.

◆ run()

virtual void sc_ast_matchers::CallerCalleeMatcher::run ( const MatchFinder::MatchResult & result)
inlinevirtual

This is the callback function when there is a match.

Definition at line 77 of file SensitivityMatcher.h.

Member Data Documentation

◆ calls_

std::vector<std::tuple<std::string, clang::ValueDecl *, clang::MemberExpr *, clang::VarDecl *, clang::ArraySubscriptExpr *, clang::ForStmt*> > sc_ast_matchers::CallerCalleeMatcher::calls_
private

Store the information.

Definition at line 55 of file SensitivityMatcher.h.

◆ vd_

clang::VarDecl* sc_ast_matchers::CallerCalleeMatcher::vd_
private

Definition at line 57 of file SensitivityMatcher.h.


The documentation for this class was generated from the following file: