kbobyrev added inline comments.

================
Comment at: clangd/index/dex/Dex.cpp:171
   }
+  if (Req.AnyScope)
+    ScopeIterators.push_back(createBoost(createTrue(Symbols.size()), 0.2));
----------------
Probably also check `!ScopeIterators.empty()`: otherwise the latency might 
increase for queries without any scope/any scope known to `Dex`.


================
Comment at: unittests/clangd/DexTests.cpp:557
 
+TEST(DexTest, WildcardScope) {
+  auto I =
----------------
Probably also add test which ensures that wildcard symbols are downranked in 
the presence of `Req.Scopes` (ProximityPathsBoosting test is probably the 
closest in this sense)? Isn't too important, but nice-to-have in the presence 
of `ScopesProximity` plans (judging from the `FIXME` in `FuzzyFindRequest`).


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52364



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to