[PATCH] D115610: [C++20] [Modules] Don't create multiple global module fragment
Chuanqi Xu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 25 21:38:15 PST 2022
ChuanqiXu added a comment.
In D115610#3269265 <https://reviews.llvm.org/D115610#3269265>, @urnathan wrote:
> Seems good to me, @iains you've been looking at this?
According to the discussion in https://github.com/llvm/llvm-project/issues/51682, it looks like Iains plans to implement something like P1184R2 (I found that is your paper!) in clang. So I added him before.
(Might you make the status as green?)
================
Comment at: clang/include/clang/Sema/Sema.h:2217
+ /// The gloabl module fragment of the current tranlation unit.
+ clang::Module *GlobalModuleFragmentCache = nullptr;
----------------
tbaeder wrote:
> Typos in "gloabl" and "tranlation" in the comment. Any reason to call this a "cache"? This was confusing to me at first.
This is consistent with the current style in Sema. You could find many example by searching `Cache;` in Sema.h. I think the semantic is "Cache something to avoid search/create again".
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115610/new/
https://reviews.llvm.org/D115610
More information about the cfe-commits
mailing list