[cfe-commits] PATCH: Initial stab at improving recovery for invalid destructors

Chandler Carruth chandlerc at google.com
Sat Feb 20 23:00:21 PST 2010


I've been noticing several problems with Clang's recovery for invalid
destructors now that typedef names are being correctly flagged. Most
of them end up asserting due to the strict constraints on the
representation of destructors in the AST.

The most disruptive thing here is allowing a lot more checking of
invalid function declarations. This allows redeclaration and other
logic to fire which cleans up the destructor representation. I can't
predict exactly how much it will hurt of course. I'm open to other
suggestions. The attached test case now passes, and I'm fixing the new
failures next. They just consist of adding expected errors and notes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-destructor-recovery.patch
Type: application/octet-stream
Size: 6378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100220/fcee4bba/attachment.obj>


More information about the cfe-commits mailing list