diff --git a/src/indexer.cc b/src/indexer.cc index 240ca756..41c5ca05 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1255,6 +1255,8 @@ Index(SemaManager *manager, WorkingFiles *wfiles, VFS *vfs, Clang->setVirtualFileSystem(FS); Clang->createFileManager(); #endif + Clang->setSourceManager(new SourceManager(Clang->getDiagnostics(), + Clang->getFileManager(), true)); IndexParam param(*vfs, no_linkage); auto DataConsumer = std::make_shared(param);