clang-tools
11.0.0
|
#include <TestFS.h>
Public Member Functions | |
IntrusiveRefCntPtr< llvm::vfs::FileSystem > | viewImpl () const override |
Overridden by implementations to provide a vfs::FileSystem. More... | |
![]() | |
virtual | ~ThreadsafeFS ()=default |
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > | view (llvm::NoneType CWD) const |
Obtain a vfs::FileSystem with an arbitrary initial working directory. More... | |
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > | view (PathRef CWD) const |
Obtain a vfs::FileSystem with a specified working directory. More... | |
Public Attributes | |
llvm::StringMap< std::string > | Files |
llvm::StringMap< time_t > | Timestamps |
|
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 36 of file TestFS.h.
References clang::clangd::buildTestFS(), Files, and Timestamps.
llvm::StringMap<std::string> clang::clangd::MockFS::Files |
Definition at line 41 of file TestFS.h.
Referenced by clang::clangd::TEST_F(), and viewImpl().
llvm::StringMap<time_t> clang::clangd::MockFS::Timestamps |
Definition at line 42 of file TestFS.h.
Referenced by viewImpl().