[Lldb-commits] [lldb] [LLDB] Add formatters for MSVC STL std::shared_ptr (PR #147575)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 10 04:09:29 PDT 2025
================
@@ -16,7 +18,23 @@ lldb::ValueObjectSP lldb_private::formatters::GetDesugaredSmartPointerValue(
auto arg = container_type.GetTypeTemplateArgument(0);
if (!arg)
- return ptr.GetSP(); // FIXME: PDB doesn't have info about template arguments
+ // If there isn't enough debug info, use the pointer type as is
+ return ptr.GetSP();
return ptr.Cast(arg.GetPointerType());
}
+
+lldb_private::SyntheticChildrenFrontEnd *
+lldb_private::formatters::GenericSmartPointerSyntheticFrontEndCreator(
----------------
Michael137 wrote:
Looks better, thanks!
Lets move these helpers into `CPlusPlusLanguage` though since they're only used from there (and it feels a tiny bit weird to include the MSVC/Libstc++ headers into `Generic`)
https://github.com/llvm/llvm-project/pull/147575
More information about the lldb-commits
mailing list