9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_PROJECTMODULES_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_PROJECTMODULES_H
15#include "clang/Tooling/CompilationDatabase.h"
48 llvm::unique_function<void(tooling::CompileCommand &,
PathRef)
const>;
65 std::shared_ptr<const clang::tooling::CompilationDatabase> CDB,
An interface to query the modules information in the project.
virtual std::string getModuleNameForSource(PathRef File)=0
virtual ModuleNameState getModuleNameState(llvm::StringRef ModuleName)
virtual void setCommandMangler(CommandMangler Mangler)
virtual std::string getSourceForModuleName(llvm::StringRef ModuleName, PathRef RequiredSrcFile)=0
llvm::unique_function< void(tooling::CompileCommand &, PathRef) const > CommandMangler
virtual ~ProjectModules()=default
virtual std::vector< std::string > getRequiredModules(PathRef File)=0
Wrapper for vfs::FileSystem for use in multithreaded programs like clangd.
FIXME: Skip testing on windows temporarily due to the different escaping code mode.
llvm::StringRef PathRef
A typedef to represent a ref to file path.
std::unique_ptr< ProjectModules > getProjectModules(std::shared_ptr< const clang::tooling::CompilationDatabase > CDB, const ThreadsafeFS &TFS)
Creates the project-modules facade used by clangd.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//