[cfe-users] Porting preprocessor macros to be compatible with clang

2019-08-20 Thread Forumer 4umer via cfe-users
Hello, I am sorry to ask for some help on this subject but I am not very comfortable with preprocessor and especially with the differences between compilers. We have some (ugly) macros used to generate some data structures and methods that works fine on Visual but I would like to use clang to

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] Porting preprocessor macros to be compatible with clang

2019-08-20 Thread Matthew Fernandez via cfe-users
> On Aug 20, 2019, at 07:27, Forumer 4umer via cfe-users > wrote: > > Hello, > > I am sorry to ask for some help on this subject but I am not very comfortable > with preprocessor and especially with the differences between compilers. > We have some (ugly) macros used to generate some data str