[Lldb-commits] [lldb] [lldb] Add completion support for direct ivars (PR #195187)

via lldb-commits lldb-commits at lists.llvm.org
Thu May 7 15:53:58 PDT 2026


================
@@ -475,6 +476,27 @@ static void PrivateAutoComplete(
         &prefix_path, // Anything that has been resolved already will be in here
     const CompilerType &compiler_type, CompletionRequest &request);
 
+/// Get the CompilerType of the instance variable (this/self) for direct ivar
+/// completion. Returns an invalid CompilerType if not in a method context.
+static CompilerType GetInstanceVariableType(StackFrame &frame,
----------------
jimingham wrote:

GetInstanceVariableName returns "self" or "this" but those aren't names of any instance variables, those are the names of the ObjectPointer.

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


More information about the lldb-commits mailing list