[PATCH] D112543: [clang] Add range accessor for ObjCAtTryStmt catch_stmts and use it

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 27 05:39:27 PDT 2021


hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.

Nice!



================
Comment at: clang/include/clang/AST/StmtObjC.h:279
+  catch_stmt_iterator catch_stmts_end() {
+    return getStmts() + 1 + NumCatchStmts;
+  }
----------------
i might have gone with 
```
catch_stmts_begin() + NumCatchStmts
```
but up to you. Same for the const one below.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112543/new/

https://reviews.llvm.org/D112543



More information about the cfe-commits mailing list