Skip to content

Commit 5db1c20

Browse files
committed
DO NOT MERGE debug
1 parent e265598 commit 5db1c20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaLookup.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5344,6 +5344,7 @@ void Sema::diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl,
53445344

53455345
Module *Owner = getOwningModule(Def);
53465346
assert(Owner && "definition of hidden declaration is not in a module");
5347+
llvm::errs() << "Sema::diagnoseMissingImport " << Decl->getName() << ": " << getOwningModule(Decl)->getFullModuleName(true) << "; Def:" << Owner->getFullModuleName(true) << "\n";
53475348

53485349
llvm::SmallVector<Module*, 8> OwningModules;
53495350
OwningModules.push_back(Owner);
@@ -5465,6 +5466,7 @@ void Sema::diagnoseTypo(const TypoCorrection &Correction,
54655466
NamedDecl *Decl = Correction.getFoundDecl();
54665467
assert(Decl && "import required but no declaration to import");
54675468

5469+
llvm::errs() << "diagnose typo\n";
54685470
diagnoseMissingImport(Correction.getCorrectionRange().getBegin(), Decl,
54695471
MissingImportKind::Declaration, ErrorRecovery);
54705472
return;

0 commit comments

Comments
 (0)