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

#include <clangmetatool/collectors/find_calls.h>

Public Member Functions

 FindCalls (clang::CompilerInstance *ci, clang::ast_matchers::MatchFinder *f, std::string n)
 
 ~FindCalls ()
 
FindCallsDatagetData ()
 

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_calls.h.

Constructor & Destructor Documentation

◆ FindCalls()

clangmetatool::collectors::FindCalls::FindCalls ( clang::CompilerInstance *  ci,
clang::ast_matchers::MatchFinder *  f,
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
  • n is a string value of the function name to match on

◆ ~FindCalls()

clangmetatool::collectors::FindCalls::~FindCalls ( )

Explicit destructor.

Member Function Documentation

◆ getData()

FindCallsData* clangmetatool::collectors::FindCalls::getData ( )

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


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