[Lldb-commits] [lldb] [LLDB] Fix crash when using tab completion on class variables (PR #83234)

Sudharsan Veeravalli via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 29 01:59:59 PST 2024


================
@@ -60,10 +60,12 @@ def test_dwim_print(self):
 
     def do_test_variable_completion(self, command):
         self.complete_from_to(f"{command} fo", f"{command} fooo")
-        self.complete_from_to(f"{command} fooo.", f"{command} fooo.")
+        self.complete_from_to(f"{command} fooo.", f"{command} fooo.t")
+        self.complete_from_to(f"{command} fooo.t.", f"{command} fooo.t.x")
         self.complete_from_to(f"{command} fooo.dd", f"{command} fooo.dd")
 
-        self.complete_from_to(f"{command} ptr_fooo->", f"{command} ptr_fooo->")
+        self.complete_from_to(f"{command} ptr_fooo->", f"{command} ptr_fooo->t")
+        self.complete_from_to(f"{command} ptr_fooo->t", f"{command} ptr_fooo->t.x")
----------------
svs-quic wrote:

This should have been ptr_fooo->t. 

Will fix this in a follow up patch

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


More information about the lldb-commits mailing list