[Lldb-commits] [lldb] [lldb] returning command completions up to a maximum (PR #135565)
Ely Ronnen via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 17 15:53:06 PDT 2025
================
@@ -230,6 +232,9 @@ class SymbolCompleter : public Completer {
// Now add the functions & symbols to the list - only add if unique:
for (const SymbolContext &sc : sc_list) {
+ if (m_match_set.size() >= m_request.GetMaxNumberOfResultsToAdd())
----------------
eronnen wrote:
In this case at the last iteration `m_match_set.size() == 254` before adding the last completion, so it will still be added...
if `m_match_set.size() > m_request.GetMaxNumberOfResultsToAdd()` it means that the number of completions added at the end will be bigger than the max number
https://github.com/llvm/llvm-project/pull/135565
More information about the lldb-commits
mailing list