[cfe-commits] Support for C++ new and delete

Sebastian Redl sebastian.redl at getdesigned.at
Sat Nov 22 10:08:55 PST 2008

Sebastian Redl wrote:
> 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 
> way.
> Next up, I'll go hunting for leaking Exprs throughout Sema. That's a 
> cleanup that's long overdue, I think.
Forgot attachment.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: new-delete.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081122/cc093794/attachment.ksh>

More information about the cfe-commits mailing list