[cfe-commits] New files for libcxxabi

John McCall rjmccall at apple.com
Wed Jun 8 13:47:18 PDT 2011


On Jun 7, 2011, at 1:15 PM, Marshall Clow wrote:

> Implements the new [] and delete [] functionality.
> With tests.
> 
> Comments please.
> I'm not 100% sure that the exception handling is correct - so that's a good place to look ;-)

The exception handling is not correct:  you should be using cleanups instead of try/catch.  The best way to do this is with an RAII object which is explicitly disabled on the non-exception path.

John.



More information about the cfe-commits mailing list