This patch modifies consume function to allow retrieval of limited number of symbols. This is the "cheap" implementation of top-level limiting iterator. In the future we would like to have a complete limit iterator implementation to insert it into the query subtrees, but in the meantime this version would be enough for a fully-functional proof-of-concept Dex implementation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Could you add test? ;)
clang-tools-extra/clangd/index/dex/Iterator.cpp | ||
---|---|---|
223 ↗ | (On Diff #159885) | Where do we increment Retrieved? |
223 ↗ | (On Diff #159885) | nit: s/Retreived/Retrieved/ |
clang-tools-extra/clangd/index/dex/Iterator.h | ||
108 ↗ | (On Diff #159885) | nit: I think Size of the returned ... is just repeating the first two sentences. Maybe drop? |