[all-commits] [llvm/llvm-project] f8536f: [clang][HeaderSearch] Fix implicit module when usi...
Ivan Murashko via All-commits
all-commits at lists.llvm.org
Sun May 28 03:50:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f8536fb11e3d71d009c9002b5aa2ef32983ac7dc
https://github.com/llvm/llvm-project/commit/f8536fb11e3d71d009c9002b5aa2ef32983ac7dc
Author: Ivan Murashko <ivan.murashko at gmail.com>
Date: 2023-05-28 (Sun, 28 May 2023)
Changed paths:
M clang/lib/Lex/HeaderSearch.cpp
A clang/test/Modules/implicit-module-header-maps.cpp
Log Message:
-----------
[clang][HeaderSearch] Fix implicit module when using header maps
Previously, if a header was found via in a header map, and not just remapped.
we wouldn't also find the module it maps to when using implicit modules (for
module maps that were explicitly loaded).
This diff just updates these code paths to also locate the owning module via
`findUsableModuleForHeader`.
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D103930
More information about the All-commits
mailing list