[PATCH] D137198: [clang][modules][deps] Parent module maps are affecting
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 1 15:00:39 PDT 2022
jansvoboda11 created this revision.
jansvoboda11 added reviewers: Bigcheese, vsapsai.
Herald added a subscriber: ributzka.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Currently, the algorithm for gathering affecting module maps includes only those defining modules that include some headers. This is not entirely correct, though. Some module maps might be "importing" module maps for `extern` submodules. Such parent module maps are affecting - they do change semantics of the compilation. This patch adds parent module maps into the set of affecting module maps.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137198
Files:
clang/lib/Serialization/ASTWriter.cpp
clang/test/ClangScanDeps/modules-extern-submodule.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137198.472419.patch
Type: text/x-patch
Size: 6195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221101/70c22d05/attachment.bin>
More information about the cfe-commits
mailing list