[cfe-dev] Trouble understand DeclContext
Stephan Bergmann via cfe-dev
cfe-dev at lists.llvm.org
Wed Feb 8 00:37:51 PST 2017
On 02/08/2017 12:53 AM, David Fontaine via cfe-dev wrote:
> Purely from a semantic perspective, hanging ParmVarDecls off of a
> VarDecl or FieldDecl seems the correct solution for function pointer
> parameters. Going through the type information and the redeclaration
> chain seems highly unfortunate even if it might be less code motion.
And if such a ParmVarDecl is of function pointer type, you'd recursively
hang any ParmVarDecls off that ParmVarDecl?
But what about a FunctionDecl whose return type is a function pointer type?
More information about the cfe-dev
mailing list