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

2016-06-06 Thread Vedant Kumar via cfe-commits
vsk abandoned this revision. vsk added a comment. I see your point that it isn't expensive to do a best-effort job here. I updated docs/SourceBasedCodeCoverage.rst with a limitations section as per my earlier comment. http://reviews.llvm.org/D20878 __

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

2016-06-06 Thread Igor Kudrin via cfe-commits
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

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

2016-06-02 Thread Vedant Kumar via cfe-commits
vsk added a comment. In http://reviews.llvm.org/D20878#446690, @ikudrin wrote: > Is there a case where this patch makes things better than they were before? > Is it possible to improve handling of exceptions instead? This patch removes something which doesn't appear to serve a useful purpose.

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

2016-06-02 Thread Igor Kudrin via cfe-commits
ikudrin added a comment. So, our tool isn't accurate in the case of throwing an exception. Is there a case where this patch makes things better than they were before? Is it possible to improve handling of exceptions instead? http://reviews.llvm.org/D20878 ___