aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2025-07-04 09:18:24 +0100
committerGitHub <noreply@github.com>2025-07-04 09:18:24 +0100
commita89e232058a29260eb9bfe77b862715ce875f962 (patch)
treeb8bbb25cc538ab1e3f68eac81dfcc37fe53a0bd6 /flang/lib/Frontend/CompilerInvocation.cpp
parent25f05c02afb99c3af483bfb8bc3abac54f4cabc3 (diff)
downloadllvm-a89e232058a29260eb9bfe77b862715ce875f962.zip
llvm-a89e232058a29260eb9bfe77b862715ce875f962.tar.gz
llvm-a89e232058a29260eb9bfe77b862715ce875f962.tar.bz2
[lldb][DataFormatter] Format libstdc++ unique_ptr like we do libc++ (#146909)
The only difference is that with libc++ the summary string contains the derefernced pointer value. With libstdc++ we currently display the pointer itself, which seems redundant. E.g., ``` (std::unique_ptr<int>) iup = 0x55555556d2b0 { pointer = 0x000055555556d2b0 } (std::unique_ptr<std::basic_string<char> >) sup = 0x55555556d2d0 { pointer = "foobar" } ``` This patch moves the logic into a common helper that's shared between the libc++ and libstdc++ formatters. After this patch we can combine the libc++ and libstdc++ API tests (see https://github.com/llvm/llvm-project/pull/146740).
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions