diff --git a/src/indexer.cc b/src/indexer.cc index 280e3c4d..69eb7291 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1263,6 +1263,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);