[Lldb-commits] [lldb] [lldb] returning command completions up to a maximum (PR #135565)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 14 01:08:03 PDT 2025


================
@@ -231,6 +253,8 @@ class CompletionRequest {
   size_t m_cursor_index;
   /// The cursor position in the argument indexed by m_cursor_index.
   size_t m_cursor_char_position;
+  /// The maximum number of completions that should be returned.
+  size_t m_max_return_elements = SIZE_MAX;
----------------
JDevlieghere wrote:

```suggestion
  size_t m_max_return_elements = std::numeric_limits<size_t>::max();
```

https://github.com/llvm/llvm-project/pull/135565


More information about the lldb-commits mailing list