@@ -117,9 +117,10 @@ namespace {
117
117
clang::SourceLocation HashLoc, const clang::Token &IncludeTok,
118
118
StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange,
119
119
clang::OptionalFileEntryRef File, StringRef SearchPath,
120
- StringRef RelativePath, const clang::Module *Imported,
120
+ StringRef RelativePath, const clang::Module *SuggestedModule,
121
+ bool ModuleImported,
121
122
clang::SrcMgr::CharacteristicKind FileType) override {
122
- handleImport (Imported );
123
+ handleImport (ModuleImported ? SuggestedModule : nullptr );
123
124
}
124
125
125
126
void moduleImport (clang::SourceLocation ImportLoc,
@@ -293,18 +294,19 @@ class BridgingPPTracker : public clang::PPCallbacks {
293
294
bool IsAngled, clang::CharSourceRange FilenameRange,
294
295
clang::OptionalFileEntryRef File,
295
296
StringRef SearchPath, StringRef RelativePath,
296
- const clang::Module *Imported,
297
+ const clang::Module *SuggestedModule,
298
+ bool ModuleImported,
297
299
clang::SrcMgr::CharacteristicKind FileType) override {
298
- if (!Imported ) {
300
+ if (!ModuleImported ) {
299
301
if (File)
300
302
Impl.BridgeHeaderFiles .insert (*File);
301
303
return ;
302
304
}
303
305
// Synthesize identifier locations.
304
306
SmallVector<clang::SourceLocation, 4 > IdLocs;
305
- for (unsigned I = 0 , E = getNumModuleIdentifiers (Imported ); I != E; ++I)
307
+ for (unsigned I = 0 , E = getNumModuleIdentifiers (SuggestedModule ); I != E; ++I)
306
308
IdLocs.push_back (HashLoc);
307
- handleImport (HashLoc, IdLocs, Imported );
309
+ handleImport (HashLoc, IdLocs, SuggestedModule );
308
310
}
309
311
310
312
void moduleImport (clang::SourceLocation ImportLoc,
0 commit comments