[cfe-commits] [PATCH] When instantiating function definitions set parameter names to those used in template
peter at pcc.me.uk
Sat Jul 17 17:50:27 PDT 2010
The attached patch makes the following change: When instantiating
function definitions set parameter names to those used in template.
The rationale is that we are copying the entire definition including
parameter names which may differ between the declaration and the
This is particularly important if any parameters are unnamed in the
declaration, as a DeclRef to an unnamed ParmVarDecl would cause the
pretty printer to produce invalid output.
This is also required by a tool I am building on top of Clang which
requires template instantiations to be as well formed as standard
Please let me know if OK to commit.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1913 bytes
Desc: not available
More information about the cfe-commits