Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
InjectInstantiation.hpp
Go to the documentation of this file.
1#ifndef INJECT_INSTANTIATION_H_
2#define INJECT_INSTANTIATION_H_
3
4#include <vector>
5
6#include "clang/ASTMatchers/ASTMatchFinder.h"
7
8#include "Injection.hpp"
9
10// forward declaration
11namespace clang {
12class Rewriter;
13}
14
30class InjectInstantiation : public clang::ast_matchers::MatchFinder::MatchCallback
31{
32public:
36 std::vector<Injection>* toDoList;
38 clang::Rewriter* rewriter;
39
40 bool invasive = false;
41
42 virtual void run(const clang::ast_matchers::MatchFinder::MatchResult& Result) override;
43};
44
45#endif
MatchCallback for injection of explicit instantiations into the source files at appropriate places.
virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result) override
clang::Rewriter * rewriter
std::vector< Injection > * toDoList