[all-commits] [llvm/llvm-project] bc2a6d: [C++20][Modules] Allow for redeclarations in parti...
iains via All-commits
all-commits at lists.llvm.org
Fri Jul 8 11:03:33 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc2a6defc853553b3896cb853bb84fe663f6bfd0
https://github.com/llvm/llvm-project/commit/bc2a6defc853553b3896cb853bb84fe663f6bfd0
Author: Iain Sandoe <iain at sandoe.co.uk>
Date: 2022-07-08 (Fri, 08 Jul 2022)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
A clang/test/Modules/cxx20-partition-redeclarations.cpp
Log Message:
-----------
[C++20][Modules] Allow for redeclarations in partitions.
The existing provision is not sufficient, it did not allow for the cases
where an implementation partition includes the primary module interface,
or for the case that an exported interface partition is contains a decl
that is then implemented in a regular implementation unit.
It is somewhat unfortunate that we have to compare top level module names
to achieve this, since built modules are not necessarily available.
TODO: It might be useful to cache a hash of the primary module name if
this test proves to be a significant load.
Differential Revision: https://reviews.llvm.org/D127624
More information about the All-commits
mailing list