mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55:08 +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
af72b59d88
commit
8b0332173f
@ -1263,6 +1263,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