clang-tools
11.0.0
|
Exact commands are not specified in the protocol so we define the ones supported by Clangd here. More...
#include <Protocol.h>
Public Attributes | |
std::string | command |
The command identifier, e.g. CLANGD_APPLY_FIX_COMMAND. More... | |
llvm::Optional< WorkspaceEdit > | workspaceEdit |
llvm::Optional< TweakArgs > | tweakArgs |
Static Public Attributes | |
const static llvm::StringLiteral | CLANGD_APPLY_FIX_COMMAND |
const static llvm::StringLiteral | CLANGD_APPLY_TWEAK |
Exact commands are not specified in the protocol so we define the ones supported by Clangd here.
The protocol specifies the command arguments to be "any[]" but to make this safer and more manageable, each command we handle maps to a certain llvm::Optional of some struct to contain its arguments. Different commands could reuse the same llvm::Optional as arguments but a command that needs different arguments would simply add a new llvm::Optional and not use any other ones. In practice this means only one argument type will be parsed and set.
Definition at line 893 of file Protocol.h.
|
static |
Definition at line 895 of file Protocol.h.
|
static |
Definition at line 897 of file Protocol.h.
std::string clang::clangd::ExecuteCommandParams::command |
The command identifier, e.g. CLANGD_APPLY_FIX_COMMAND.
Definition at line 900 of file Protocol.h.
llvm::Optional<TweakArgs> clang::clangd::ExecuteCommandParams::tweakArgs |
Definition at line 904 of file Protocol.h.
llvm::Optional<WorkspaceEdit> clang::clangd::ExecuteCommandParams::workspaceEdit |
Definition at line 903 of file Protocol.h.