Instantiator
Generate c++ template instantiations
|
MatchCallback for template instantiation deletions. More...
#include <Callbacks/DeleteInstantiations.hpp>
Public Member Functions | |
virtual void | run (const clang::ast_matchers::MatchFinder::MatchResult &Result) override |
Public Attributes | |
clang::Rewriter * | rewriter |
MatchCallback for template instantiation deletions.
This callback is called for the Matcher TemplInst(). It detects the point of instantiation in the source code and registers the deletion in the clang::Rewriter. For example in this piece of code:
the callback determines the line template void doSomething(double&);
.
doSomething
. How can one get the begin of the whole declaration and how can one get the end of the declaration? Definition at line 32 of file DeleteInstantiations.hpp.
|
overridevirtual |
Definition at line 93 of file DeleteInstantiations.cpp.
clang::Rewriter* DeleteInstantiations::rewriter |
Pointer to an external clang::Rewriter object.
Definition at line 36 of file DeleteInstantiations.hpp.