mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Construct SourceManager with UserFilesAreVolatile
Fix #235. Close #453 In clang, it may be worth generalizing UserFilesAreVolatile (introduced in rC160074) to FilesAreVolatile.
This commit is contained in:
parent
a43e51f3bf
commit
17dc4a6ecc
@ -1255,6 +1255,8 @@ Index(SemaManager *manager, WorkingFiles *wfiles, VFS *vfs,
|
|||||||
Clang->setVirtualFileSystem(FS);
|
Clang->setVirtualFileSystem(FS);
|
||||||
Clang->createFileManager();
|
Clang->createFileManager();
|
||||||
#endif
|
#endif
|
||||||
|
Clang->setSourceManager(new SourceManager(Clang->getDiagnostics(),
|
||||||
|
Clang->getFileManager(), true));
|
||||||
|
|
||||||
IndexParam param(*vfs, no_linkage);
|
IndexParam param(*vfs, no_linkage);
|
||||||
auto DataConsumer = std::make_shared<IndexDataConsumer>(param);
|
auto DataConsumer = std::make_shared<IndexDataConsumer>(param);
|
||||||
|
Loading…
Reference in New Issue
Block a user