[PATCH] D20428: Tracking exception specification source locations

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 8 06:51:46 PDT 2016


aaron.ballman added a comment.

One thing this patch does not do but needs to is fix `ASTContext::adjustExceptionSpec()` (Thanks to Don Hinton for pointing this out off-list!), however, I am at a bit of a loss for how best to rebuild the type location.

Would it be correct to call `CreateTypeSourceInfo(Updated)` to get a new TypeSourceInfo object of the proper size, then `initializeFullCopy()` the new type location object from the old one, and call `setExceptionSpecRange()` to update the source range information on the new type loc object? (The range would have to be passed to `adjustExceptionSpec()`.) Or is there a better way to perform this rebuilding?


http://reviews.llvm.org/D20428





More information about the cfe-commits mailing list