clang-tools 20.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]

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
 

Detailed Description

Definition at line 32 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 34 of file TestFS.h.

References clang::clangd::buildTestFS(), Files, OverlayRealFileSystemForModules, and Timestamps.

Member Data Documentation

◆ Files

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

Definition at line 45 of file TestFS.h.

Referenced by viewImpl().

◆ OverlayRealFileSystemForModules

bool clang::clangd::MockFS::OverlayRealFileSystemForModules = false

Definition at line 49 of file TestFS.h.

Referenced by viewImpl().

◆ Timestamps

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

Definition at line 46 of file TestFS.h.

Referenced by viewImpl().


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