Lines Matching defs:VFS
160 llvm::vfs::FileSystem *VFS,
169 auto FileStatus = VFS->status(FilePath);
176 auto MPathStatus = VFS->status(MPath);
181 BufferOwner = valueOrNull(VFS->getBufferForFile(RF.second, -1, true, isVolatile));
192 auto MPathStatus = VFS->status(MPath);
206 BufferOwner = valueOrNull(VFS->getBufferForFile(FilePath, -1, true, isVolatile));
778 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS =
779 llvm::vfs::getRealFileSystem();
780 AST->FileMgr = new FileManager(FileSystemOpts, VFS);
1099 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) {
1103 if (VFS && FileMgr)
1104 assert(VFS == &FileMgr->getVirtualFileSystem() &&
1105 "VFS passed to Parse and VFS in FileMgr are different");
1111 Preamble->AddImplicitPreamble(*CCInvocation, VFS, OverrideMainBuffer.get());
1112 // VFS may have changed...
1132 // Ensure that Clang has a FileManager with the right VFS, which may have
1133 // changed above in AddImplicitPreamble. If VFS is nullptr, rely on
1135 if (VFS && FileMgr && &FileMgr->getVirtualFileSystem() == VFS)
1138 FileMgr = Clang->createFileManager(std::move(VFS));
1296 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, bool AllowRebuild,
1301 getBufferForFileHandlingRemapping(PreambleInvocationIn, VFS.get(),
1313 *VFS)) {
1369 PreambleInvocationIn, MainFileBuffer.get(), Bounds, *Diagnostics, VFS,
1488 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS =
1493 AST->FileMgr = new FileManager(AST->FileSystemOpts, VFS);
1642 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) {
1646 assert(VFS && "VFS is null");
1658 getMainBufferWithPrecompiledPreamble(PCHContainerOps, *Invocation, VFS);
1670 return Parse(std::move(PCHContainerOps), std::move(OverrideMainBuffer), VFS);
1722 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) {
1734 llvm::makeArrayRef(ArgBegin, ArgEnd), Diags, VFS);
1768 if (!VFS)
1769 VFS = llvm::vfs::getRealFileSystem();
1770 VFS = createVFSFromCompilerInvocation(*CI, *Diags, VFS);
1771 AST->FileMgr = new FileManager(AST->FileSystemOpts, VFS);
1794 VFS)) {
1809 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) {
1813 if (!VFS) {
1815 VFS = &FileMgr->getVirtualFileSystem();
1839 getMainBufferWithPrecompiledPreamble(PCHContainerOps, *Invocation, VFS);
1850 Parse(std::move(PCHContainerOps), std::move(OverrideMainBuffer), VFS);
2245 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS =
2247 Preamble->AddImplicitPreamble(Clang->getInvocation(), VFS,
2249 // FIXME: there is no way to update VFS if it was changed by
2251 // We use on-disk preambles instead and rely on FileMgr's VFS to ensure the