This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Print newline between found types
ClosedPublic

Authored by aeubanks on Oct 12 2022, 4:19 PM.

Details

Summary

Or else multiple entries end up overlapping on the same line.

Diff Detail

Event Timeline

aeubanks created this revision.Oct 12 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 4:19 PM
aeubanks requested review of this revision.Oct 12 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 4:19 PM

(depends on https://reviews.llvm.org/D135826 for the test to be meaningful)

DavidSpickett added a subscriber: DavidSpickett.

This LGTM thanks for the fix just one comment on the test before I can approve.

lldb/test/API/lang/cpp/type_lookup_duplicate/TestCppTypeLookupDuplicate.py
17

Could you match the whole string here? A bit easier to see at a glance that way. Unless the output is not stable?

aeubanks added inline comments.Oct 14 2022, 11:19 AM
lldb/test/API/lang/cpp/type_lookup_duplicate/TestCppTypeLookupDuplicate.py
17

it's

(lldb) im loo -t Foo
2 matches found in /home/aeubanks/repos/llvm-project/build/cmake/lldb-test-build.noindex/lang/cpp/type_lookup_duplicate/TestCppTypeLookupDuplicate.test_namespace_only_dwarf/a.out:
id = {0x0000004f}, name = "Foo", qualified = "a::Foo", byte-size = 1, decl = main.cpp:2, compiler_type = "struct Foo {
}"
id = {0x00000058}, name = "Foo", qualified = "b::Foo", byte-size = 1, decl = main.cpp:6, compiler_type = "struct Foo {
}"

I'd rather not depend so much on the exact output since that doesn't necessarily look stable

This revision is now accepted and ready to land.Oct 17 2022, 2:08 AM
This revision was automatically updated to reflect the committed changes.