clang-tools 20.0.0git
|
#include <TestFS.h>
Public Member Functions | |
IntrusiveRefCntPtr< llvm::vfs::FileSystem > | viewImpl () const override |
Overridden by implementations to provide a vfs::FileSystem. | |
Public Member Functions inherited from clang::clangd::ThreadsafeFS | |
virtual | ~ThreadsafeFS ()=default |
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > | view (std::nullopt_t CWD) const |
Obtain a vfs::FileSystem with an arbitrary initial working directory. | |
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > | view (PathRef CWD) const |
Obtain a vfs::FileSystem with a specified working directory. | |
Public Attributes | |
llvm::StringMap< std::string > | Files |
llvm::StringMap< time_t > | Timestamps |
bool | OverlayRealFileSystemForModules = false |
|
inlineoverridevirtual |
Overridden by implementations to provide a vfs::FileSystem.
This is distinct from view(NoneType) to avoid GCC's -Woverloaded-virtual.
Implements clang::clangd::ThreadsafeFS.
Definition at line 34 of file TestFS.h.
References clang::clangd::buildTestFS(), Files, OverlayRealFileSystemForModules, and Timestamps.
llvm::StringMap<std::string> clang::clangd::MockFS::Files |
Definition at line 45 of file TestFS.h.
Referenced by viewImpl().
bool clang::clangd::MockFS::OverlayRealFileSystemForModules = false |
Definition at line 49 of file TestFS.h.
Referenced by viewImpl().
llvm::StringMap<time_t> clang::clangd::MockFS::Timestamps |
Definition at line 46 of file TestFS.h.
Referenced by viewImpl().