We're having some problems with the name generation for ParamVarDecls in our tool, can anyone give us some help?
A bit of context:
We use libTooling to generate the AST of a given program that we later convert to our format and do a number of analyses.
We also define a bunch of functions in every TU, so we don't get 'implicit function declaration' warnings/errors  by adding them to the preprocessor's predefines .
We want to use clang to generate the name of every declaration (VarDecl, ParmVar, FunctionDecl and maybe FieldDecl as well), and it seems to work fine for everything except the code we just added to the preprocessor, i.e.: