[all-commits] [llvm/llvm-project] 58c525: [lldb] Automatic indexing for synthetic children o...

Dave Lee via All-commits all-commits at lists.llvm.org
Thu Mar 5 15:28:43 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58c5252b28cf71a4423f40d0a6141ab776278124
      https://github.com/llvm/llvm-project/commit/58c5252b28cf71a4423f40d0a6141ab776278124
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M lldb/docs/use/variable.rst
    M lldb/include/lldb/DataFormatters/TypeSynthetic.h
    M lldb/include/lldb/lldb-enumerations.h
    M lldb/source/DataFormatters/VectorType.cpp
    M lldb/source/Plugins/Language/CPlusPlus/GenericBitset.cpp
    M lldb/source/Plugins/Language/CPlusPlus/GenericList.cpp
    M lldb/source/Plugins/Language/CPlusPlus/GenericOptional.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibCxxTuple.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibStdcppTuple.cpp
    M lldb/source/Plugins/Language/CPlusPlus/MsvcStlTree.cpp
    M lldb/source/Plugins/Language/CPlusPlus/MsvcStlTuple.cpp
    M lldb/source/Plugins/Language/CPlusPlus/MsvcStlVariant.cpp
    M lldb/source/Plugins/Language/ObjC/NSArray.cpp
    M lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
    M lldb/source/Plugins/Language/ObjC/NSIndexPath.cpp
    M lldb/source/Plugins/Language/ObjC/NSSet.cpp
    M lldb/source/ValueObject/ValueObjectSynthetic.cpp
    M lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/myArraySynthProvider.py
    A lldb/test/API/functionalities/data-formatter/synthetic_subscript/Makefile
    A lldb/test/API/functionalities/data-formatter/synthetic_subscript/TestSyntheticSubscript.py
    A lldb/test/API/functionalities/data-formatter/synthetic_subscript/main.c
    A lldb/test/API/functionalities/data-formatter/synthetic_subscript/thing_formatter.py

  Log Message:
  -----------
  [lldb] Automatic indexing for synthetic children of collections (#174885)

Synthetic providers for collection types use a child name format of
"[N]".

This `ValueObjectSynthetic` to automatically convert child names in this
convention to the index embedded in the subscript string. With this
change, synthetic formatters for collections will only need to implement
`GetIndexOfChildWithName` or `get_child_index` for non-indexed
collection children. Some examples of non-indexed children are
`$$dereference$$` support, or "hidden" children.

The automatic conversion applies to N values that are less than the
number of children reported by the synthetic provider.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list