[all-commits] [llvm/llvm-project] f98cf0: [LLDB] Convert libstdc++ std::variant summary to C...

nerix via All-commits all-commits at lists.llvm.org
Wed Jul 16 02:08:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f98cf07b7dc7af7716e1da9a1257b8c6416f9a46
      https://github.com/llvm/llvm-project/commit/f98cf07b7dc7af7716e1da9a1257b8c6416f9a46
  Author: nerix <nerixdev at outlook.de>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M lldb/examples/synthetic/gnu_libstdcpp.py
    M lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibStdcpp.cpp
    M lldb/source/Plugins/Language/CPlusPlus/LibStdcpp.h

  Log Message:
  -----------
  [LLDB] Convert libstdc++ std::variant summary to C++ (#148929)

This PR converts the `std::variant` summary from Python to C++.

Split from #148554. MSVC's STL and libstdc++ use the same type name for
`std::variant`, thus they need one "dispatcher" function that checks the
type and calls the appropriate summary. For summaries, both need to be
implemented in C++.

This is mostly a 1:1 translation. The main difference is that in C++,
the summary returns `false` if it can't inspect the object properly
(e.g. a member could not be found). In Python, this wasn't possible.



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