[clang][modules] Handle explicit modules when checking for .Private -> _Private
authorBen Langmuir <blangmuir@apple.com>
Mon, 3 Apr 2023 22:22:20 +0000 (15:22 -0700)
committerBen Langmuir <blangmuir@apple.com>
Tue, 4 Apr 2023 15:12:10 +0000 (08:12 -0700)
commit8ec36e6956cb03d80f3fee8e593808c43a8a1ec3
tree8eac05c95ed1b112d8921ef6c2c36fee7161d2d7
parent3d9cc946ab4fc9ab9bd5a17c36e5d84f2943062c
[clang][modules] Handle explicit modules when checking for .Private -> _Private

While we eventually want to remove the mapping from .Private to _Private
modules, until we do, ensure that it behaves the same for explicit
modules.

rdar://107449872

Differential Revision: https://reviews.llvm.org/D147477
clang/lib/Frontend/CompilerInstance.cpp
clang/test/Modules/implicit-private-with-submodule-explicit.m [new file with mode: 0644]