This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add range accessor for ObjCAtTryStmt catch_stmts and use it
ClosedPublic

Authored by thakis on Oct 26 2021, 8:06 AM.

Diff Detail

Event Timeline

thakis requested review of this revision.Oct 26 2021, 8:06 AM
thakis created this revision.
hans accepted this revision.Oct 27 2021, 5:39 AM

Nice!

clang/include/clang/AST/StmtObjC.h
279

i might have gone with

catch_stmts_begin() + NumCatchStmts

but up to you. Same for the const one below.

This revision is now accepted and ready to land.Oct 27 2021, 5:39 AM
thakis marked an inline comment as done.Oct 27 2021, 5:47 AM

Done, thanks.

This revision was landed with ongoing or failed builds.Oct 27 2021, 5:57 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 5:57 AM