This is an archive of the discontinued LLVM Phabricator instance.

[clang] Make access to submodules via `iterator_range`
AbandonedPublic

Authored by Stoorx on Apr 18 2023, 1:52 PM.

Details

Summary

In file clang/lib/Basic/Module.cpp the Module class had submodule_begin() and submodule_end() functions to retrieve corresponding iterators for private vector of Modules. This commit removes mentioned functions, and replaces all of theirs usages with submodules() function and range-based for-loops.

Diff Detail

Event Timeline

Stoorx created this revision.Apr 18 2023, 1:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 1:52 PM
Stoorx requested review of this revision.Apr 18 2023, 1:52 PM
Stoorx updated this revision to Diff 514744.Apr 18 2023, 2:27 PM

Fix unchanged usage of old functions.

Stoorx updated this revision to Diff 514749.Apr 18 2023, 2:55 PM
Stoorx updated this revision to Diff 514976.Apr 19 2023, 8:57 AM
Stoorx updated this revision to Diff 515001.Apr 19 2023, 9:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 9:47 AM
Stoorx updated this revision to Diff 515016.Apr 19 2023, 10:35 AM
Stoorx updated this revision to Diff 515708.Apr 21 2023, 6:00 AM

Rebase & upload with context

Stoorx updated this revision to Diff 515734.Apr 21 2023, 7:51 AM
Stoorx abandoned this revision.Apr 21 2023, 9:11 AM