mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-21 07:59:27 +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
9ff1897dfb
commit
6528dcb81d
@ -1251,6 +1251,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