[PATCH] D20878: [Coverage] Do not push a new region after a CXXTryStmt

Igor Kudrin via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 6 17:47:50 PDT 2016


ikudrin added a comment.

I agree that it'd be expensive to put a new counter after each function call. Even if there is no `throw` statement within a TU, called functions still may raise exceptions.
Anyway, if we come across a `try` statement, we can guess that some exceptions are expected and do our best to support constructions like this:

  try {
    ...
  }
  catch (...) {
    ...
    throw;
  }


http://reviews.llvm.org/D20878





More information about the cfe-commits mailing list