clang
3.9.0
|
Namespaces | |
detail | |
Classes | |
class | Status |
The result of a status operation. More... | |
class | File |
Represents an open file. More... | |
class | directory_iterator |
An input iterator over the entries in a virtual path, similar to llvm::sys::fs::directory_iterator. More... | |
class | recursive_directory_iterator |
An input iterator over the recursive contents of a virtual path, similar to llvm::sys::fs::recursive_directory_iterator. More... | |
class | FileSystem |
The virtual file system interface. More... | |
class | OverlayFileSystem |
A file system that allows overlaying one AbstractFileSystem on top of another. More... | |
class | InMemoryFileSystem |
An in-memory file system. More... | |
struct | YAMLVFSEntry |
class | YAMLVFSWriter |
Functions | |
IntrusiveRefCntPtr< FileSystem > | getRealFileSystem () |
Gets an vfs::FileSystem for the 'real' file system, as seen by the operating system. More... | |
llvm::sys::fs::UniqueID | getNextVirtualUniqueID () |
Get a globally unique ID for a virtual file or directory. More... | |
IntrusiveRefCntPtr< FileSystem > | getVFSFromYAML (std::unique_ptr< llvm::MemoryBuffer > Buffer, llvm::SourceMgr::DiagHandlerTy DiagHandler, StringRef YAMLFilePath, void *DiagContext=nullptr, IntrusiveRefCntPtr< FileSystem > ExternalFS=getRealFileSystem()) |
Gets a FileSystem for a virtual file system described in YAML format. More... | |
static ErrorOr < detail::InMemoryNode * > | lookupInMemoryNode (const InMemoryFileSystem &FS, detail::InMemoryDirectory *Dir, const Twine &P) |
UniqueID clang::vfs::getNextVirtualUniqueID | ( | ) |
Get a globally unique ID for a virtual file or directory.
Definition at line 1591 of file VirtualFileSystem.cpp.
Referenced by clang::vfs::InMemoryFileSystem::addFile().
IntrusiveRefCntPtr< FileSystem > clang::vfs::getRealFileSystem | ( | ) |
Gets an vfs::FileSystem
for the 'real' file system, as seen by the operating system.
Definition at line 245 of file VirtualFileSystem.cpp.
Referenced by clang::tooling::buildASTFromCodeWithArgs(), clang::CompilerInstance::createFileManager(), clang::createVFSFromCompilerInvocation(), clang::driver::Driver::Driver(), clang::FileManager::FileManager(), clang::format::getStyle(), clang::ASTUnit::LoadFromASTFile(), and clang::tooling::runToolOnCodeWithArgs().
IntrusiveRefCntPtr<FileSystem> clang::vfs::getVFSFromYAML | ( | std::unique_ptr< llvm::MemoryBuffer > | Buffer, |
llvm::SourceMgr::DiagHandlerTy | DiagHandler, | ||
StringRef | YAMLFilePath, | ||
void * | DiagContext = nullptr , |
||
IntrusiveRefCntPtr< FileSystem > | ExternalFS = getRealFileSystem() |
||
) |
Gets a FileSystem
for a virtual file system described in YAML format.
Referenced by clang::createVFSFromCompilerInvocation().
|
static |
Definition at line 581 of file VirtualFileSystem.cpp.
References clang::begin(), E, clang::end(), clang::vfs::detail::InMemoryDirectory::getChild(), I, clang::vfs::FileSystem::makeAbsolute(), Node, and clang::vfs::InMemoryFileSystem::useNormalizedPaths().
Referenced by clang::vfs::InMemoryFileSystem::dir_begin(), clang::vfs::InMemoryFileSystem::openFileForRead(), and clang::vfs::InMemoryFileSystem::status().