Re: [cfe-users] How to get code for a function template specialization

2019-08-20 Thread Romulo via cfe-users
Now I'm facing a second problem. I am able to generate the template function bodies using print, but I can't seem to be able to locate the CallExpr inside the printed bodies (the spelling locations point to the non specialized template). I need this because I might have a template function calling

Re: [cfe-users] How to get code for a function template specialization

2019-08-07 Thread Romulo via cfe-users
Thanks, this solved my problem! On Sun, Aug 4, 2019 at 11:07 PM Richard Smith wrote: > On Fri, 2 Aug 2019 at 15:05, Romulo via cfe-users < > cfe-users@lists.llvm.org> wrote: > >> Hello there, thanks for your time reading this :) >> >> I am trying to extract the code for a specialized template fu

Re: [cfe-users] How to get code for a function template specialization

2019-08-04 Thread Richard Smith via cfe-users
On Fri, 2 Aug 2019 at 15:05, Romulo via cfe-users wrote: > Hello there, thanks for your time reading this :) > > I am trying to extract the code for a specialized template function, but I > have no idea on how to proceed. I know I can use SourceManager to get the > original 'pure template' code b

[cfe-users] How to get code for a function template specialization

2019-08-02 Thread Romulo via cfe-users
Hello there, thanks for your time reading this :) I am trying to extract the code for a specialized template function, but I have no idea on how to proceed. I know I can use SourceManager to get the original 'pure template' code but I don't know how to access the specialized functions (the SourceL