[clang-tools-extra] r346666 - [clangd] Allow symbols from AnyScope in dexp.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 12 08:03:59 PST 2018
Author: hokein
Date: Mon Nov 12 08:03:59 2018
New Revision: 346666
URL: http://llvm.org/viewvc/llvm-project?rev=346666&view=rev
Log:
[clangd] Allow symbols from AnyScope in dexp.
Summary:
We should allow symbols from any scope in dexp results, othewise
`find StringRef` doesn't return any results (llvm::StringRef).
Reviewers: ioeric
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D54427
Modified:
clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp
Modified: clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp?rev=346666&r1=346665&r2=346666&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/dex/dexp/Dexp.cpp Mon Nov 12 08:03:59 2018
@@ -139,6 +139,7 @@ class FuzzyFind : public Command {
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");
More information about the cfe-commits
mailing list