[all-commits] [llvm/llvm-project] 5f45a8: [lldb] Print hint if object description is request...

Augusto Noronha via All-commits all-commits at lists.llvm.org
Wed Aug 2 15:33:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f45a87bf029cc4b9815f5f819906198b07e00d1
      https://github.com/llvm/llvm-project/commit/5f45a87bf029cc4b9815f5f819906198b07e00d1
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2023-08-02 (Wed, 02 Aug 2023)

  Changed paths:
    M lldb/include/lldb/Core/Debugger.h
    M lldb/source/Commands/CommandObjectDWIMPrint.cpp
    M lldb/source/Core/CoreProperties.td
    M lldb/source/Core/Debugger.cpp
    A lldb/test/API/lang/objc/objc-po-hint/Makefile
    A lldb/test/API/lang/objc/objc-po-hint/TestObjcPoHint.py
    A lldb/test/API/lang/objc/objc-po-hint/main.m

  Log Message:
  -----------
  [lldb] Print hint if object description is requested but not implemented

Lots of users use "po" as their default print command. If the type
doesn't implement the description function the output is often not what
the user wants. Print a hint telling the user that they might prefer
using "p" instead.

Differential Revision: https://reviews.llvm.org/D153489




More information about the All-commits mailing list