clang-metatool
A framework for reusing code in clang tools
Public Member Functions | List of all members
clangmetatool::collectors::FindCXXMemberCalls Class Reference

#include <clangmetatool/collectors/find_cxx_member_calls.h>

Public Member Functions

 FindCXXMemberCalls (clang::CompilerInstance *ci, clang::ast_matchers::MatchFinder *f, const std::string &c, const std::string &n)
 
 ~FindCXXMemberCalls ()
 
FindCXXMemberCallsDatagetData ()
 

Detailed Description

Find Calls data collector. Collects the caller and references to the specified function and one of its arguments.

Definition at line 22 of file find_cxx_member_calls.h.

Constructor & Destructor Documentation

◆ FindCXXMemberCalls()

clangmetatool::collectors::FindCXXMemberCalls::FindCXXMemberCalls ( clang::CompilerInstance *  ci,
clang::ast_matchers::MatchFinder *  f,
const std::string &  c,
const std::string &  n 
)

Explicit constructor, to allow for implementation details:

  • ci is a pointer to an instance of the clang compiler
  • f is a pointer to an instance of the MatchFinder class
  • c is a string value of the fully-qualified class/struct name to match on
  • n is a string value of the method name to match on

◆ ~FindCXXMemberCalls()

clangmetatool::collectors::FindCXXMemberCalls::~FindCXXMemberCalls ( )

Explicit destructor.

Member Function Documentation

◆ getData()

FindCXXMemberCallsData* clangmetatool::collectors::FindCXXMemberCalls::getData ( )

Get the pointer to the data structure, populated or not.


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