[PATCH] D78487: Explicitly move from llvm::json Array/Object to Value
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 06:25:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb36b889a3b81: Explicitly move from llvm::json Array/Object to Value (authored by MForster, committed by sammccall).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78487/new/
https://reviews.llvm.org/D78487
Files:
clang-tools-extra/clangd/Protocol.cpp
Index: clang-tools-extra/clangd/Protocol.cpp
===================================================================
--- clang-tools-extra/clangd/Protocol.cpp
+++ clang-tools-extra/clangd/Protocol.cpp
@@ -1002,7 +1002,7 @@
Result.push_back(Tok.tokenModifiers);
}
assert(Result.size() == SemanticTokenEncodingSize * Toks.size());
- return Result;
+ return std::move(Result);
}
bool operator==(const SemanticToken &L, const SemanticToken &R) {
@@ -1030,7 +1030,7 @@
Result["edits"] = *TE.edits;
if (TE.tokens)
Result["data"] = encodeTokens(*TE.tokens);
- return Result;
+ return std::move(Result);
}
bool fromJSON(const llvm::json::Value &Params, SemanticTokensParams &R) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78487.258720.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200420/3cd1532d/attachment.bin>
More information about the cfe-commits
mailing list