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<clangd::ContainedRefsResult>
45 llvm::Expected<std::pair<clangd::SymbolID, clangd::Symbol>>
48 llvm::Expected<clangd::LookupRequest>
50 llvm::Expected<clangd::FuzzyFindRequest>
53 llvm::Expected<clangd::ContainedRefsRequest>
55 llvm::Expected<clangd::RelationsRequest>
70 llvm::Expected<ContainedRef>
91 llvm::Expected<clangd::SymbolLocation>
93 llvm::Expected<SymbolLocation>
95 llvm::Expected<HeaderWithReferences>
97 llvm::Expected<clangd::Symbol::IncludeHeaderWithReferences>
105 std::string RemoteIndexRoot;
106 std::string LocalIndexRoot;
107 llvm::BumpPtrAllocator Arena;
108 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.