9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_REMOTE_MARSHALLING_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_REMOTE_MARSHALLING_H
14#include "llvm/ADT/StringRef.h"
15#include "llvm/Support/StringSaver.h"
39 Marshaller(llvm::StringRef RemoteIndexRoot, llvm::StringRef LocalIndexRoot);
43 llvm::Expected<std::pair<clangd::SymbolID, clangd::Symbol>>
46 llvm::Expected<clangd::LookupRequest>
48 llvm::Expected<clangd::FuzzyFindRequest>
51 llvm::Expected<clangd::RelationsRequest>
84 llvm::Expected<clangd::SymbolLocation>
86 llvm::Expected<SymbolLocation>
88 llvm::Expected<HeaderWithReferences>
90 llvm::Expected<clangd::Symbol::IncludeHeaderWithReferences>
98 std::string RemoteIndexRoot;
99 std::string LocalIndexRoot;
100 llvm::BumpPtrAllocator Arena;
101 llvm::UniqueStringSaver Strings;
A URI describes the location of a source file.
A notable exception is URI translation.
LookupRequest toProtobuf(const clangd::LookupRequest &From)
toProtobuf() functions serialize native clangd types and strip IndexRoot from the file paths specific...
llvm::Expected< std::string > uriToRelativePath(llvm::StringRef URI)
Translates a URI from the server's backing index to a relative path suitable to send over the wire to...
llvm::Expected< clangd::Symbol > fromProtobuf(const Symbol &Message)
llvm::Expected< std::string > relativePathToURI(llvm::StringRef RelativePath)
Translates RelativePath into the absolute path and builds URI for the user machine.
Describes a named symbol from a header.
@ Info
An information message.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Represents a symbol occurrence in the source file.
Represents a relation between two symbols.
The class presents a C++ symbol, e.g.