class FileSystemStatCache
Declaration
class FileSystemStatCache { /* full declaration omitted */ };
Description
Abstract interface for introducing a FileManager cache for 'stat' system calls, which is used by precompiled and pretokenized headers to improve performance.
Declared at: clang/include/clang/Basic/FileSystemStatCache.h:34
Method Overview
- private virtual void anchor()
- public static std::error_code get(llvm::StringRef Path, llvm::vfs::Status & Status, bool isFile, std::unique_ptr<llvm::vfs::File> * F, clang::FileSystemStatCache * Cache, llvm::vfs::FileSystem & FS)
- protected virtual std::error_code getStat(llvm::StringRef Path, llvm::vfs::Status & Status, bool isFile, std::unique_ptr<llvm::vfs::File> * F, llvm::vfs::FileSystem & FS)
- public virtual ~FileSystemStatCache()
Methods
¶virtual void anchor()
virtual void anchor()
Declared at: clang/include/clang/Basic/FileSystemStatCache.h:35
¶static std::error_code get(
llvm::StringRef Path,
llvm::vfs::Status& Status,
bool isFile,
std::unique_ptr<llvm::vfs::File>* F,
clang::FileSystemStatCache* Cache,
llvm::vfs::FileSystem& FS)
static std::error_code get(
llvm::StringRef Path,
llvm::vfs::Status& Status,
bool isFile,
std::unique_ptr<llvm::vfs::File>* F,
clang::FileSystemStatCache* Cache,
llvm::vfs::FileSystem& FS)
Description
Get the 'stat' information for the specified path, using the cache to accelerate it if possible. If isFile is true, then this lookup should only return success for files (not directories). If it is false this lookup should only return success for directories (not files). On a successful file lookup, the implementation can optionally fill in \p F with a valid \p File object and the client guarantees that it will close it.
Declared at: clang/include/clang/Basic/FileSystemStatCache.h:51
Parameters
- llvm::StringRef Path
- llvm::vfs::Status& Status
- bool isFile
- std::unique_ptr<llvm::vfs::File>* F
- clang::FileSystemStatCache* Cache
- llvm::vfs::FileSystem& FS
Returns
\c true if the path does not exist or \c false if it exists.
¶virtual std::error_code getStat(
llvm::StringRef Path,
llvm::vfs::Status& Status,
bool isFile,
std::unique_ptr<llvm::vfs::File>* F,
llvm::vfs::FileSystem& FS)
virtual std::error_code getStat(
llvm::StringRef Path,
llvm::vfs::Status& Status,
bool isFile,
std::unique_ptr<llvm::vfs::File>* F,
llvm::vfs::FileSystem& FS)
Declared at: clang/include/clang/Basic/FileSystemStatCache.h:59
Parameters
- llvm::StringRef Path
- llvm::vfs::Status& Status
- bool isFile
- std::unique_ptr<llvm::vfs::File>* F
- llvm::vfs::FileSystem& FS
¶virtual ~FileSystemStatCache()
virtual ~FileSystemStatCache()
Declared at: clang/include/clang/Basic/FileSystemStatCache.h:38