[Lldb-commits] [lldb] [lldb][Format] Unwrap references to C-strings when printing C-string summaries (PR #174398)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 5 08:25:11 PST 2026
================
@@ -720,7 +720,7 @@ void FormatManager::LoadSystemFormatters() {
TypeSummaryImpl::Flags string_flags;
string_flags.SetCascades(true)
.SetSkipPointers(true)
- .SetSkipReferences(false)
+ .SetSkipReferences(true)
----------------
Michael137 wrote:
Hmm the more I look into this the more it seems like the right thing to do is not apply this formatter for references and instead let the child be printed. That's similar to how the `int&` case also works it seems. I.e., we call `PrintChildrenOneLiner` which does the formatting of the pointee.
https://github.com/llvm/llvm-project/pull/174398
More information about the lldb-commits
mailing list