[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

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 th

[cfe-users] clang::FunctionTemplateDecl and constness

2019-08-13 Thread Romulo via cfe-users
Hi there, Is there any specific reason why clang::FunctionTemplateDecl::findSpecialization and clang::FunctionTemplateDecl::getInjectedTemplateArgs don't have a const version? Thanks. ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm

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

2019-08-20 Thread Romulo via cfe-users
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 :) >>> >>&

[cfe-users] Template specialization locations

2020-05-06 Thread Romulo via cfe-users
Hi there, Is there a way to find where TemplateTypeParmDecl are (SourceRange) in a FunctionDecl? I'm trying to find every place in the AST where a custom template type is used. Thanks! ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llv