Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
GetNeededInstantiations Class Reference

MatchCallback for template instantiation detections. More...

#include <Callbacks/GetNeededInstantiations.hpp>

Inheritance diagram for GetNeededInstantiations:
[legend]
Collaboration diagram for GetNeededInstantiations:
[legend]

Public Member Functions

virtual void run (const clang::ast_matchers::MatchFinder::MatchResult &Result) override
 

Public Attributes

std::vector< Injection > * toDoList
 

Detailed Description

MatchCallback for template instantiation detections.

This callback is called for the Matcher TemplInstWithoutDef(). The Matcher returns a clang::FunctionDecl or a clang::CXXMethodDecl which has no definition in this translation unit and which is a template instantiation. This callback checks whether these instantiations are valid and then load the relevant data as an Injection.

Definition at line 19 of file GetNeededInstantiations.hpp.

Member Function Documentation

◆ run()

void GetNeededInstantiations::run ( const clang::ast_matchers::MatchFinder::MatchResult & Result)
overridevirtual

Definition at line 11 of file GetNeededInstantiations.cpp.

Member Data Documentation

◆ toDoList

std::vector<Injection>* GetNeededInstantiations::toDoList

A pointer to an external vector of Injection which is filled during GetNeededInstantiations.

Todo
Can this be a std::list?

Definition at line 26 of file GetNeededInstantiations.hpp.


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