[Lldb-commits] [PATCH] D135827: [lldb] Print newline between found types
Arthur Eubanks via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 14 11:20:00 PDT 2022
aeubanks added inline comments.
================
Comment at: lldb/test/API/lang/cpp/type_lookup_duplicate/TestCppTypeLookupDuplicate.py:16
+
+ self.expect("image lookup -A -t Foo", DATA_TYPES_DISPLAYED_CORRECTLY, substrs=["2 matches found", "\nid =", "\nid ="])
----------------
DavidSpickett wrote:
> Could you match the whole string here? A bit easier to see at a glance that way. Unless the output is not stable?
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
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135827/new/
https://reviews.llvm.org/D135827
More information about the lldb-commits
mailing list