Home | History | Annotate | Download | only in Basic

Lines Matching defs:File

1 //===- VirtualFileSystem.h - Virtual File System Layer ----------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
9 /// \file
10 /// \brief Defines the virtual file system interface vfs::FileSystem.
59 /// \brief Returns the name that should be used for this file or directory.
85 /// \brief Represents an open file.
86 class File {
88 /// \brief Destroy the file after closing it (if open).
91 virtual ~File();
92 /// \brief Get the status of the file.
94 /// \brief Get the name of the file
101 /// \brief Get the contents of the file as a \p MemoryBuffer.
105 /// \brief Closes the file.
110 /// \brief An interface for virtual file systems to provide an iterator over the
195 /// \brief The virtual file system interface.
202 /// \brief Get a \p File object for the file at \p Path, if one exists.
203 virtual llvm::ErrorOr<std::unique_ptr<File>>
206 /// This is a convenience method that opens a file, gets its content and then
207 /// closes the file.
218 /// this file system and may propagate down for nested file systems.
220 /// Get the working directory of this file system.
223 /// Check whether a file exists. Provided for convenience.
240 /// \brief Gets an \p vfs::FileSystem for the 'real' file system, as seen by
244 /// \brief A file system that allows overlaying one \p AbstractFileSystem on top
248 /// one merged file system. When there is a directory that exists in more than
249 /// one file system, the \p OverlayFileSystem contains a directory containing
251 /// top-most (most recently added) directory are used. When there is a file
252 /// that exists in more than one file system, the file in the top-most file
256 /// \brief The stack of file systems, implemented as a list in order of
262 /// \brief Pushes a file system on top of the stack.
266 llvm::ErrorOr<std::unique_ptr<File>>
274 /// \brief Get an iterator pointing to the most recently added file system.
277 /// \brief Get an iterator pointing one-past the least recently added file
286 /// An in-memory file system.
296 /// \return true if the file was successfully added, false if the file already
297 /// exists in the file system with different contents.
301 /// \return true if the file was successfully added, false if the file already
302 /// exists in the file system with different contents.
306 /// Return true if this file system normalizes . and .. in paths.
310 llvm::ErrorOr<std::unique_ptr<File>>
319 /// \brief Get a globally unique ID for a virtual file or directory.
322 /// \brief Gets a \p FileSystem for a virtual file system described in YAML