12 #ifndef LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_TESTFS_H 13 #define LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_TESTFS_H 17 #include "llvm/ADT/IntrusiveRefCntPtr.h" 18 #include "llvm/Support/Path.h" 19 #include "llvm/Support/VirtualFileSystem.h" 26 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
28 llvm::StringMap<time_t>
const &
Timestamps = {});
33 IntrusiveRefCntPtr<llvm::vfs::FileSystem>
getFileSystem()
const override {
38 llvm::StringMap<std::string>
Files;
50 StringRef RelPathPrefix = StringRef());
52 llvm::Optional<tooling::CompileCommand>
55 llvm::Optional<ProjectInfo> getProjectInfo(
PathRef File)
const override;
61 StringRef RelPathPrefix;
std::vector< std::string > ExtraClangFlags
llvm::StringMap< std::string > Files
llvm::StringRef PathRef
A typedef to represent a ref to file path.
Provides compilation arguments used for parsing C and C++ files.
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > buildTestFS(llvm::StringMap< std::string > const &Files, llvm::StringMap< time_t > const &Timestamps)
std::string testPath(PathRef File)
IntrusiveRefCntPtr< llvm::vfs::FileSystem > getFileSystem() const override
Called by ClangdServer to obtain a vfs::FileSystem to be used for parsing.
llvm::StringRef Directory
llvm::StringMap< time_t > Timestamps
volatile int UnittestSchemeAnchorSource
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::StringMap< std::string > Files