clang-tools 10.0.0

Namespaces | Functions
Protocol.cpp File Reference
`#include "Protocol.h"`
`#include "Logger.h"`
`#include "URI.h"`
`#include "clang/Basic/LLVM.h"`
`#include "llvm/ADT/Hashing.h"`
`#include "llvm/ADT/SmallString.h"`
`#include "llvm/ADT/StringSwitch.h"`
`#include "llvm/Support/ErrorHandling.h"`
`#include "llvm/Support/Format.h"`
`#include "llvm/Support/FormatVariadic.h"`
`#include "llvm/Support/JSON.h"`
`#include "llvm/Support/Path.h"`
`#include "llvm/Support/raw_ostream.h"`
Include dependency graph for Protocol.cpp:

Go to the source code of this file.

## Namespaces
| clang
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
| clang::clangd

## Functions
bool | clang::clangd::fromJSON (const llvm::json::Value &E, URIForFile &R)
llvm::json::Value | clang::clangd::toJSON (const URIForFile &U)
| Serialize/deserialize `URIForFile` to/from a string URI. More...
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const URIForFile &U)
llvm::json::Value | clang::clangd::toJSON (const TextDocumentIdentifier &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TextDocumentIdentifier &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, Position &R)
llvm::json::Value | clang::clangd::toJSON (const Position &P)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const Position &P)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, Range &R)
llvm::json::Value | clang::clangd::toJSON (const Range &P)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const Range &R)
llvm::json::Value | clang::clangd::toJSON (const Location &P)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const Location &L)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TextDocumentItem &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TextEdit &R)
llvm::json::Value | clang::clangd::toJSON (const TextEdit &P)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const TextEdit &TE)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, TraceLevel &Out)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, SymbolKind &Out)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, SymbolKindBitset &Out)
SymbolKind | clang::clangd::adjustKindToCapability (SymbolKind Kind, SymbolKindBitset &SupportedSymbolKinds)
SymbolKind | clang::clangd::indexSymbolKindToSymbolKind (index::SymbolKind Kind)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, ClientCapabilities &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, InitializeParams &R)
llvm::json::Value | clang::clangd::toJSON (const MessageType &R)
llvm::json::Value | clang::clangd::toJSON (const ShowMessageParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DidOpenTextDocumentParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DidCloseTextDocumentParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DidChangeTextDocumentParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, FileChangeType &Out)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, FileEvent &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DidChangeWatchedFilesParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TextDocumentContentChangeEvent &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DocumentRangeFormattingParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DocumentOnTypeFormattingParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DocumentFormattingParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DocumentSymbolParams &R)
llvm::json::Value | clang::clangd::toJSON (const DiagnosticRelatedInformation &DRI)
llvm::json::Value | clang::clangd::toJSON (const Diagnostic &D)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, Diagnostic &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, CodeActionContext &R)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const Diagnostic &D)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, CodeActionParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, WorkspaceEdit &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, ExecuteCommandParams &R)
llvm::json::Value | clang::clangd::toJSON (const SymbolInformation &P)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const SymbolInformation &SI)
bool | clang::clangd::operator== (const SymbolDetails &LHS, const SymbolDetails &RHS)
llvm::json::Value | clang::clangd::toJSON (const SymbolDetails &P)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const SymbolDetails &S)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, WorkspaceSymbolParams &R)
llvm::json::Value | clang::clangd::toJSON (const Command &C)
llvm::json::Value | clang::clangd::toJSON (const CodeAction &CA)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const DocumentSymbol &S)
llvm::json::Value | clang::clangd::toJSON (const DocumentSymbol &S)
llvm::json::Value | clang::clangd::toJSON (const WorkspaceEdit &WE)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TweakArgs &A)
llvm::json::Value | clang::clangd::toJSON (const TweakArgs &A)
llvm::json::Value | clang::clangd::toJSON (const ApplyWorkspaceEditParams &Params)
bool | clang::clangd::fromJSON (const llvm::json::Value &Response, ApplyWorkspaceEditResponse &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TextDocumentPositionParams &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, CompletionContext &R)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, CompletionParams &R)
static llvm::StringRef | clang::clangd::toTextKind (MarkupKind Kind)
bool | clang::clangd::fromJSON (const llvm::json::Value &V, MarkupKind &K)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, MarkupKind K)
llvm::json::Value | clang::clangd::toJSON (const MarkupContent &MC)
llvm::json::Value | clang::clangd::toJSON (const Hover &H)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, CompletionItemKind &Out)
CompletionItemKind | clang::clangd::adjustKindToCapability (CompletionItemKind Kind, CompletionItemKindBitset &SupportedCompletionItemKinds)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, CompletionItemKindBitset &Out)
llvm::json::Value | clang::clangd::toJSON (const CompletionItem &CI)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const CompletionItem &I)
bool | clang::clangd::operator< (const CompletionItem &L, const CompletionItem &R)
llvm::json::Value | clang::clangd::toJSON (const CompletionList &L)
llvm::json::Value | clang::clangd::toJSON (const ParameterInformation &PI)
llvm::json::Value | clang::clangd::toJSON (const SignatureInformation &SI)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const SignatureInformation &I)
llvm::json::Value | clang::clangd::toJSON (const SignatureHelp &SH)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, RenameParams &R)
llvm::json::Value | clang::clangd::toJSON (const DocumentHighlight &DH)
llvm::json::Value | clang::clangd::toJSON (const FileStatus &FStatus)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const DocumentHighlight &V)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DidChangeConfigurationParams &CCP)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, ClangdCompileCommand &CDbUpdate)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, ConfigurationSettings &S)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, InitializationOptions &Opts)
bool | clang::clangd::fromJSON (const llvm::json::Value &E, TypeHierarchyDirection &Out)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TypeHierarchyParams &R)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &O, const TypeHierarchyItem &I)
llvm::json::Value | clang::clangd::toJSON (const TypeHierarchyItem &I)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, TypeHierarchyItem &I)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, ResolveTypeHierarchyItemParams &P)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, ReferenceParams &R)
static const char * | clang::clangd::toString (OffsetEncoding OE)
llvm::json::Value | clang::clangd::toJSON (const OffsetEncoding &OE)
bool | clang::clangd::fromJSON (const llvm::json::Value &V, OffsetEncoding &OE)
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, OffsetEncoding Enc)
bool | clang::clangd::operator== (const SemanticHighlightingInformation &Lhs, const SemanticHighlightingInformation &Rhs)
llvm::json::Value | clang::clangd::toJSON (const SemanticHighlightingInformation &Highlighting)
llvm::json::Value | clang::clangd::toJSON (const SemanticHighlightingParams &Highlighting)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, SelectionRangeParams &P)
llvm::json::Value | clang::clangd::toJSON (const SelectionRange &Out)
bool | clang::clangd::fromJSON (const llvm::json::Value &Params, DocumentLinkParams &R)
llvm::json::Value | clang::clangd::toJSON (const DocumentLink &DocumentLink)