[clang] [clang-tools-extra] [clang][lex] Always pass suggested module to `InclusionDirective()` callback (PR #81061)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 8 08:57:41 PST 2024
================
@@ -2265,7 +2265,6 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
UsableHeaderUnit = true;
else if (!IsImportDecl) {
// This is a Header Unit that we do not include-translate
- SuggestedModule = ModuleMap::KnownHeader();
SM = nullptr;
----------------
benlangmuir wrote:
Maybe we should rename `SM` to reflect the difference in behaviour?
https://github.com/llvm/llvm-project/pull/81061
More information about the cfe-commits
mailing list