[PATCH] D148658: [clang] Make access to submodules via `iterator_range`
Sviatoslav Osipov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 18 13:52:59 PDT 2023
Stoorx created this revision.
Stoorx added a reviewer: DavidSpickett.
Stoorx added a project: clang.
Herald added a project: All.
Stoorx requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148658
Files:
clang/include/clang/Basic/Module.h
clang/lib/Basic/Module.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Serialization/ASTWriter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148658.514733.patch
Type: text/x-patch
Size: 6878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230418/920bb685/attachment.bin>
More information about the cfe-commits
mailing list