#include "TestFS.h"
#include "GlobalCompilationDatabase.h"
#include "URI.h"
#include "support/Logger.h"
#include "support/Path.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Path.h"
#include <optional>
namespace clang {
namespace clangd {
namespace {
bool pathConsumeFront(PathRef &Path, PathRef Prefix) { … }
}
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
buildTestFS(llvm::StringMap<std::string> const &Files,
llvm::StringMap<time_t> const &Timestamps) { … }
MockCompilationDatabase::MockCompilationDatabase(llvm::StringRef Directory,
llvm::StringRef RelPathPrefix)
: … { … }
std::optional<ProjectInfo>
MockCompilationDatabase::getProjectInfo(PathRef File) const { … }
std::optional<tooling::CompileCommand>
MockCompilationDatabase::getCompileCommand(PathRef File) const { … }
const char *testRoot() { … }
std::string testPath(PathRef File, llvm::sys::path::Style Style) { … }
class TestScheme : public URIScheme { … };
const char *TestScheme::Scheme = …;
static URISchemeRegistry::Add<TestScheme> X(TestScheme::Scheme, "Test schema");
volatile int UnittestSchemeAnchorSource = …;
}
}