[all-commits] [llvm/llvm-project] 23349d: [lldb] Add ability to hide the root name of a value

Dave Lee via All-commits all-commits at lists.llvm.org
Fri Mar 24 14:07:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23349d83a98f23e67ff0321dad7c378b117ce6aa
      https://github.com/llvm/llvm-project/commit/23349d83a98f23e67ff0321dad7c378b117ce6aa
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2023-03-24 (Fri, 24 Mar 2023)

  Changed paths:
    M lldb/include/lldb/DataFormatters/DumpValueObjectOptions.h
    M lldb/include/lldb/DataFormatters/ValueObjectPrinter.h
    M lldb/source/Commands/CommandObjectDWIMPrint.cpp
    M lldb/source/Commands/CommandObjectExpression.cpp
    M lldb/source/DataFormatters/DumpValueObjectOptions.cpp
    M lldb/source/DataFormatters/ValueObjectPrinter.cpp
    M lldb/test/API/commands/dwim-print/TestDWIMPrint.py
    M lldb/test/API/commands/dwim-print/main.c

  Log Message:
  -----------
  [lldb] Add ability to hide the root name of a value

When printing a value, allow the root value's name to be elided, without omiting the
names of child values.

At the API level, this adds `SetHideRootName()`, which joins the existing
`SetHideName()` function.

This functionality is used by `dwim-print` and `expression`.

Fixes an issue identified by @jgorbe in https://reviews.llvm.org/D145609.

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




More information about the All-commits mailing list