diff options
Diffstat (limited to 'clang-tools-extra/clangd/Protocol.h')
-rw-r--r-- | clang-tools-extra/clangd/Protocol.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h index a53f72f984e..8c1f1a59307 100644 --- a/clang-tools-extra/clangd/Protocol.h +++ b/clang-tools-extra/clangd/Protocol.h @@ -589,6 +589,20 @@ struct SignatureHelp { static json::Expr unparse(const SignatureHelp &); }; +struct RenameParams { + /// The document that was opened. + TextDocumentIdentifier textDocument; + + /// The position at which this request was sent. + Position position; + + /// The new name of the symbol. + std::string newName; + + static llvm::Optional<RenameParams> parse(llvm::yaml::MappingNode *Params, + clangd::Logger &Logger); +}; + } // namespace clangd } // namespace clang |