Lines Matching defs:VFS
57 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) {
59 // so we create an in-memory VFS with just that and overlay it on top.
64 new llvm::vfs::OverlayFileSystem(VFS));
417 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
420 assert(VFS && "VFS is null");
482 ProcessWarningOptions(Diagnostics, Clang->getDiagnosticOpts(), *VFS);
484 VFS =
485 createVFSFromCompilerInvocation(Clang->getInvocation(), Diagnostics, VFS);
488 Clang->setFileManager(new FileManager(Clang->getFileSystemOpts(), VFS));
605 llvm::vfs::FileSystem &VFS) const {
634 if (!moveOnNoError(VFS.status(R.second), Status)) {
641 if (!VFS.makeAbsolute(MappedPath))
648 // OverridenFileBuffers tracks only the files not found in VFS.
654 if (moveOnNoError(VFS.status(RB.first), Status))
660 if (!VFS.makeAbsolute(MappedPath))
668 // The file's buffer was remapped and the file was not found in VFS.
676 if (!moveOnNoError(VFS.status(F.first()), Status)) {
705 if (auto Status = VFS.status(F.getKey())) {
714 CompilerInvocation &CI, IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
717 configurePreamble(Bounds, CI, VFS, MainFileBuffer);
721 CompilerInvocation &CI, IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
724 configurePreamble(Bounds, CI, VFS, MainFileBuffer);
765 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
767 assert(VFS);
786 setupPreambleStorage(*Storage, PreprocessorOpts, VFS);
791 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS) {
796 // Make sure we can access the PCH file even if we're using a VFS
799 if (VFS == RealFS || VFS->exists(PCHPath))
804 // but we'll just leave the current VFS as is and let clang's code
809 // We have a slight inconsistency here -- we're using the VFS to
811 VFS = createVFSOverlayForPreamblePCH(PCHPath, std::move(*Buf), VFS);
814 // For in-memory preamble, we have to provide a VFS overlay that makes it
821 VFS = createVFSOverlayForPreamblePCH(PCHPath, std::move(Buf), VFS);