clang-tools 10.0.0

Public Attributes | List of all members
clang::clangd::ClientCapabilities Struct Reference

`#include <Protocol.h>`

Collaboration diagram for clang::clangd::ClientCapabilities:
[legend]

## Public Attributes
llvm::Optional< SymbolKindBitset > | WorkspaceSymbolKinds
| The supported set of SymbolKinds for workspace/symbol. More...
bool | DiagnosticFixes = false
| Whether the client accepts diagnostics with codeActions attached inline. More...
bool | DiagnosticRelatedInformation = false
| Whether the client accepts diagnostics with related locations. More...
bool | DiagnosticCategory = false
| Whether the client accepts diagnostics with category attached to it using the "category" extension. More...
bool | CompletionSnippets = false
| Client supports snippets as insert text. More...
bool | CompletionFixes = false
| Client supports completions with additionalTextEdit near the cursor. More...
bool | HierarchicalDocumentSymbol = false
| Client supports hierarchical document symbols. More...
bool | HasSignatureHelp = false
| Client supports signature help. More...
bool | OffsetsInSignatureHelp = false
| Client supports processing label offsets instead of a simple label string. More...
llvm::Optional< CompletionItemKindBitset > | CompletionItemKinds
| The supported set of CompletionItemKinds for textDocument/completion. More...
bool | CodeActionStructure = false
| Client supports CodeAction return value for textDocument/codeAction. More...
bool | SemanticHighlighting = false
| Client supports semantic highlighting. More...
llvm::Optional< std::vector< OffsetEncoding > > | offsetEncoding
| Supported encodings for LSP character offsets. (clangd extension). More...
MarkupKind | HoverContentFormat = MarkupKind::PlainText
| The content format that should be used for Hover requests. More...
bool | RenamePrepareSupport = false
| The client supports testing for validity of rename operations before execution. More...

## Detailed Description

Definition at line 369 of file Protocol.h.

## Member Data Documentation

## ◆ CodeActionStructure

bool clang::clangd::ClientCapabilities::CodeActionStructure = false

Client supports CodeAction return value for textDocument/codeAction.

textDocument.codeAction.codeActionLiteralSupport.

Definition at line 414 of file Protocol.h.

## ◆ CompletionFixes

bool clang::clangd::ClientCapabilities::CompletionFixes = false

Client supports completions with additionalTextEdit near the cursor.

This is a clangd extension. (LSP says this is for unrelated text only). textDocument.completion.editsNearCursor

Definition at line 394 of file Protocol.h.

## ◆ CompletionItemKinds

llvm::Optional<CompletionItemKindBitset> clang::clangd::ClientCapabilities::CompletionItemKinds

The supported set of CompletionItemKinds for textDocument/completion.

textDocument.completion.completionItemKind.valueSet

Definition at line 410 of file Protocol.h.

## ◆ CompletionSnippets

bool clang::clangd::ClientCapabilities::CompletionSnippets = false

Client supports snippets as insert text.

textDocument.completion.completionItem.snippetSupport

Definition at line 389 of file Protocol.h.

## ◆ DiagnosticCategory

bool clang::clangd::ClientCapabilities::DiagnosticCategory = false

Whether the client accepts diagnostics with category attached to it using the "category" extension.

textDocument.publishDiagnostics.categorySupport

Definition at line 385 of file Protocol.h.

## ◆ DiagnosticFixes

bool clang::clangd::ClientCapabilities::DiagnosticFixes = false

Whether the client accepts diagnostics with codeActions attached inline.

textDocument.publishDiagnostics.codeActionsInline.

Definition at line 376 of file Protocol.h.

## ◆ DiagnosticRelatedInformation

bool clang::clangd::ClientCapabilities::DiagnosticRelatedInformation = false

Whether the client accepts diagnostics with related locations.

textDocument.publishDiagnostics.relatedInformation.

Definition at line 380 of file Protocol.h.

## ◆ HasSignatureHelp

bool clang::clangd::ClientCapabilities::HasSignatureHelp = false

Client supports signature help.

textDocument.signatureHelp

Definition at line 402 of file Protocol.h.

## ◆ HierarchicalDocumentSymbol

bool clang::clangd::ClientCapabilities::HierarchicalDocumentSymbol = false

Client supports hierarchical document symbols.

textDocument.documentSymbol.hierarchicalDocumentSymbolSupport

Definition at line 398 of file Protocol.h.

## ◆ HoverContentFormat

MarkupKind clang::clangd::ClientCapabilities::HoverContentFormat = MarkupKind::PlainText

The content format that should be used for Hover requests.

textDocument.hover.contentEncoding

Definition at line 425 of file Protocol.h.

## ◆ offsetEncoding

llvm::Optional<std::vector<OffsetEncoding> > clang::clangd::ClientCapabilities::offsetEncoding

Supported encodings for LSP character offsets. (clangd extension).

Definition at line 421 of file Protocol.h.

## ◆ OffsetsInSignatureHelp

bool clang::clangd::ClientCapabilities::OffsetsInSignatureHelp = false

Client supports processing label offsets instead of a simple label string.

textDocument.signatureHelp.signatureInformation.parameterInformation.labelOffsetSupport

Definition at line 406 of file Protocol.h.

## ◆ RenamePrepareSupport

bool clang::clangd::ClientCapabilities::RenamePrepareSupport = false

The client supports testing for validity of rename operations before execution.

Definition at line 429 of file Protocol.h.

## ◆ SemanticHighlighting

bool clang::clangd::ClientCapabilities::SemanticHighlighting = false

Client supports semantic highlighting.

textDocument.semanticHighlightingCapabilities.semanticHighlighting

Definition at line 418 of file Protocol.h.

## ◆ WorkspaceSymbolKinds

llvm::Optional<SymbolKindBitset> clang::clangd::ClientCapabilities::WorkspaceSymbolKinds

The supported set of SymbolKinds for workspace/symbol.

workspace.symbol.symbolKind.valueSet

Definition at line 372 of file Protocol.h.

The documentation for this struct was generated from the following file:

- Protocol.h