ilya-biryukov added a comment.

Summarizing the offline discussion with @kbobyrev, @ioeric and @sammccall in 
two comments.



================
Comment at: clang-tools-extra/clangd/index/dex/Iterator.h:96
+  /// shouldn't apply any boosting to the consumed item.
+  virtual float boost(DocID ID) const = 0;
 
----------------
With limit iterator in mind, let's rename this to `consume()` and make it 
non-const.


================
Comment at: clang-tools-extra/clangd/index/dex/Iterator.h:137
+/// and BOOST iterators are actually present in the query.
+std::vector<std::pair<DocID, float>>
+consumeAndBoost(Iterator &It,
----------------
Let's remove this function and change the interface of consume to return a 
vector of pairs instead.


https://reviews.llvm.org/D50970



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

Reply via email to