clang-tools  12.0.0git
Public Member Functions | Public Attributes | List of all members
clang::clangd::MockFS Class Reference

#include <TestFS.h>

Inheritance diagram for clang::clangd::MockFS:
Inheritance graph
[legend]
Collaboration diagram for clang::clangd::MockFS:
Collaboration graph
[legend]

Public Member Functions

IntrusiveRefCntPtr< llvm::vfs::FileSystem > viewImpl () const override
 Overridden by implementations to provide a vfs::FileSystem. More...
 
- Public Member Functions inherited from clang::clangd::ThreadsafeFS
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
 

Detailed Description

Definition at line 34 of file TestFS.h.

Member Function Documentation

◆ viewImpl()

IntrusiveRefCntPtr<llvm::vfs::FileSystem> clang::clangd::MockFS::viewImpl ( ) const
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(), and Timestamps.

Member Data Documentation

◆ Files

llvm::StringMap<std::string> clang::clangd::MockFS::Files

Definition at line 41 of file TestFS.h.

Referenced by clang::clangd::TestTU::inputs(), and clang::clangd::TEST_F().

◆ Timestamps

llvm::StringMap<time_t> clang::clangd::MockFS::Timestamps

Definition at line 42 of file TestFS.h.

Referenced by viewImpl().


The documentation for this class was generated from the following file: