[clang-tools-extra] r346648 - [clangd] Remember to serialize AnyScope in FuzzyFindRequest json.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 12 04:24:08 PST 2018


Author: ioeric
Date: Mon Nov 12 04:24:08 2018
New Revision: 346648

URL: http://llvm.org/viewvc/llvm-project?rev=346648&view=rev
Log:
[clangd] Remember to serialize AnyScope in FuzzyFindRequest json.

Modified:
    clang-tools-extra/trunk/clangd/index/Index.cpp

Modified: clang-tools-extra/trunk/clangd/index/Index.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.cpp?rev=346648&r1=346647&r2=346648&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/Index.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/Index.cpp Mon Nov 12 04:24:08 2018
@@ -207,7 +207,7 @@ bool fromJSON(const json::Value &Paramet
   int64_t Limit;
   bool OK =
       O && O.map("Query", Request.Query) && O.map("Scopes", Request.Scopes) &&
-      O.map("Limit", Limit) &&
+      O.map("AnyScope", Request.AnyScope) && O.map("Limit", Limit) &&
       O.map("RestrictForCodeCompletion", Request.RestrictForCodeCompletion) &&
       O.map("ProximityPaths", Request.ProximityPaths);
   if (OK && Limit <= std::numeric_limits<uint32_t>::max())
@@ -219,6 +219,7 @@ json::Value toJSON(const FuzzyFindReques
   return json::Object{
       {"Query", Request.Query},
       {"Scopes", json::Array{Request.Scopes}},
+      {"AnyScope", Request.AnyScope},
       {"Limit", Request.Limit},
       {"RestrictForCodeCompletion", Request.RestrictForCodeCompletion},
       {"ProximityPaths", json::Array{Request.ProximityPaths}},




More information about the cfe-commits mailing list