clang-tools
7.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 |
Static Public Attributes | |
static const llvm::StringLiteral | CLANGD_APPLY_FIX_COMMAND |
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 565 of file Protocol.h.
|
static |
Definition at line 567 of file Protocol.h.
Referenced by clang::clangd::fromJSON().
std::string clang::clangd::ExecuteCommandParams::command |
The command identifier, e.g. CLANGD_APPLY_FIX_COMMAND.
Definition at line 570 of file Protocol.h.
Referenced by clang::clangd::fromJSON(), and clang::clangd::toJSON().
llvm::Optional<WorkspaceEdit> clang::clangd::ExecuteCommandParams::workspaceEdit |
Definition at line 573 of file Protocol.h.
Referenced by clang::clangd::toJSON().