This revision was automatically updated to reflect the committed changes. Closed by commit rL346666: [clangd] Allow symbols from AnyScope in dexp. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits.
Repository: rL LLVM https://reviews.llvm.org/D54427 Files: clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp Index: clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp =================================================================== --- clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp +++ clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp @@ -139,6 +139,7 @@ StringRef(this->Scopes).split(Scopes, ','); Request.Scopes = {Scopes.begin(), Scopes.end()}; } + Request.AnyScope = Request.Scopes.empty(); // FIXME(kbobyrev): Print symbol final scores to see the distribution. static const auto OutputFormat = "{0,-4} | {1,-40} | {2,-25}\n"; outs() << formatv(OutputFormat, "Rank", "Symbol ID", "Symbol Name");
Index: clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp =================================================================== --- clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp +++ clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp @@ -139,6 +139,7 @@ StringRef(this->Scopes).split(Scopes, ','); Request.Scopes = {Scopes.begin(), Scopes.end()}; } + Request.AnyScope = Request.Scopes.empty(); // FIXME(kbobyrev): Print symbol final scores to see the distribution. static const auto OutputFormat = "{0,-4} | {1,-40} | {2,-25}\n"; outs() << formatv(OutputFormat, "Rank", "Symbol ID", "Symbol Name");
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits