[PATCH] D129045: [C++20][Modules] Update handling of implicit inlines [P1779R3]
Iain Sandoe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 4 02:23:21 PDT 2022
iains added a comment.
In D129045#3627856 <https://reviews.llvm.org/D129045#3627856>, @ChuanqiXu wrote:
> It looks like the tests lack the cast that the methods are attached to the global module fragment.
(maybe I misunderstand what you are saying here)
bool ImplicitInlineCXX20 = !getLangOpts().CPlusPlus20 ||
!NewFD->getOwningModule() ||
NewFD->getOwningModule()->isGlobalModule();
We are in the global module if there is no owning module, or if the owning module is the GMF.
We always set this to true before C++20, matching the unconditional true default argument it the setImplicitlyInline() method.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129045/new/
https://reviews.llvm.org/D129045
More information about the cfe-commits
mailing list