[PATCH] D112287: [clang] Implement CFG construction for @try and @catch

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 21 18:12:05 PDT 2021


thakis created this revision.
thakis added a reviewer: rnk.
thakis requested review of this revision.

@finally is still not implemented.

With this, clang can emit -Wreturn-type warnings for functions containing
@try/@catch (but not yet @finally), and -Wunreachable-code also works for those
functions.

The implementation is similar to D36914 <https://reviews.llvm.org/D36914>.

Part of PR46693.


https://reviews.llvm.org/D112287

Files:
  clang/lib/Analysis/CFG.cpp
  clang/test/Sema/warn-unreachable.m
  clang/test/Sema/warn-unreachable.mm
  clang/test/SemaObjC/try-catch.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112287.381448.patch
Type: text/x-patch
Size: 8776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211022/bbad5e10/attachment.bin>


More information about the cfe-commits mailing list