mirror of
https://github.com/MaskRay/ccls.git
synced 2025-12-19 05:32:11 +00:00
Compare commits
2 Commits
ce6fab9d46
...
f359ea4377
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f359ea4377 | ||
|
|
d31cc9f076 |
@ -1282,6 +1282,7 @@ IndexResult index(WorkingFiles *wfiles, VFS *vfs, const std::string &opt_wdir, c
|
||||
return {};
|
||||
clang->getPreprocessorOpts().RetainRemappedFileBuffers = true;
|
||||
#if LLVM_VERSION_MAJOR >= 22
|
||||
clang->setVirtualFileSystem(fs);
|
||||
clang->createFileManager();
|
||||
#else
|
||||
clang->createFileManager(fs);
|
||||
|
||||
@ -284,6 +284,7 @@ std::unique_ptr<CompilerInstance> buildCompilerInstance(Session &session, std::u
|
||||
// RequiresNullTerminator: true may cause out-of-bounds read when a file is
|
||||
// mmap'ed but is saved concurrently.
|
||||
#if LLVM_VERSION_MAJOR >= 22
|
||||
clang->setVirtualFileSystem(fs);
|
||||
clang->createFileManager();
|
||||
#else
|
||||
clang->createFileManager(fs);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user