[cfe-dev] Source-to-source template resolution
Leszek Ĺwirski
leszek at swirski.co.uk
Wed Jun 19 05:53:24 PDT 2013
I'm not sure if this is the right mailing list for this sort of question,
but I couldn't think of a better one. Would it be possible to parse a C++
file using clang, and perform a source-to-source transformation replacing
all templates with resolved instances of that template? Something like
transforming
template<class T>
struct A {
T val;
};
A<int> x;
A<double> y;
into
struct A_int {
int val;
};
struct A_double {
double val;
};
A_int x;
A_double y;
- Leszek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130619/43677d64/attachment.html>
More information about the cfe-dev
mailing list