[cfe-commits] Support for C++ new and delete
sebastian.redl at getdesigned.at
Sat Nov 22 10:01:15 PST 2008
Sebastian Redl wrote:
> I really like the idea of simply passing a Declarator to ActOnCXXNew,
> though. Ideally, I'd kill the outermost array there and keep its
> expression, then pass it on to ActOnTypeName to create the type for me.
> However, for that I'd have to make the chunks removable in Declarator,
> which they aren't now.
Did it without making the thing mutable. I just taught
GetTypeForDeclarator to skip a bit.
So, here's the new patch. There are downsides to this approach, too -
for example, statement printing doesn't work quite right if I do it this
Next up, I'll go hunting for leaking Exprs throughout Sema. That's a
cleanup that's long overdue, I think.
More information about the cfe-commits