Instantiator
Generate c++ template instantiations
|
MatchCallback for injection of explicit instantiations into the source files at appropriate places. More...
#include <Callbacks/InjectInstantiation.hpp>
Public Member Functions | |
virtual void | run (const clang::ast_matchers::MatchFinder::MatchResult &Result) override |
Public Attributes | |
std::vector< Injection > * | toDoList |
clang::Rewriter * | rewriter |
bool | invasive = false |
MatchCallback for injection of explicit instantiations into the source files at appropriate places.
This callback is called for the Matcher FuncWithDef(). The Matcher returns a clang::FunctionDecl or a clang::CXXMethodDecl which has a definition in this translation unit. This callback checks whether there is an Injection item in the toDoList which which fits the current match result. The following is compared for each match result:
const
qualifierDefinition at line 30 of file InjectInstantiation.hpp.
|
overridevirtual |
Definition at line 20 of file InjectInstantiation.cpp.
bool InjectInstantiation::invasive = false |
Definition at line 40 of file InjectInstantiation.hpp.
clang::Rewriter* InjectInstantiation::rewriter |
Pointer to an external clang::Rewriter object.
Definition at line 38 of file InjectInstantiation.hpp.
std::vector<Injection>* InjectInstantiation::toDoList |
A pointer to an external vector of Injection which is filled during GetNeededInstantiations.
Definition at line 36 of file InjectInstantiation.hpp.