[libcxx-commits] [PATCH] D83732: Desugar class type for iterator lookup.
Sterling Augustine via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 14 11:38:02 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG77ee4b4c9be5: Desugar class type for iterator lookup. (authored by saugustine).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83732/new/
https://reviews.llvm.org/D83732
Files:
libcxx/test/pretty_printers/gdb_pretty_printer_test.sh.cpp
libcxx/utils/gdb/libcxx/printers.py
Index: libcxx/utils/gdb/libcxx/printers.py
===================================================================
--- libcxx/utils/gdb/libcxx/printers.py
+++ libcxx/utils/gdb/libcxx/printers.py
@@ -698,7 +698,7 @@
def _init_cast_type(self, val_type):
map_it_type = gdb.lookup_type(
- str(val_type) + "::iterator").strip_typedefs()
+ str(val_type.strip_typedefs()) + "::iterator").strip_typedefs()
tree_it_type = map_it_type.template_argument(0)
node_ptr_type = tree_it_type.template_argument(1)
return node_ptr_type
@@ -717,7 +717,7 @@
def _init_cast_type(self, val_type):
set_it_type = gdb.lookup_type(
- str(val_type) + "::iterator").strip_typedefs()
+ str(val_type.strip_typedefs()) + "::iterator").strip_typedefs()
node_ptr_type = set_it_type.template_argument(1)
return node_ptr_type
Index: libcxx/test/pretty_printers/gdb_pretty_printer_test.sh.cpp
===================================================================
--- libcxx/test/pretty_printers/gdb_pretty_printer_test.sh.cpp
+++ libcxx/test/pretty_printers/gdb_pretty_printer_test.sh.cpp
@@ -383,6 +383,10 @@
ComparePrettyPrintToChars(prime_pairs,
"std::set with 2 elements = {"
"{first = 3, second = 5}, {first = 5, second = 7}}");
+
+ using using_set = std::set<int>;
+ using_set other{1, 2, 3};
+ ComparePrettyPrintToChars(other, "std::set with 3 elements = {1, 2, 3}");
}
void stack_test() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83732.277921.patch
Type: text/x-patch
Size: 1501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200714/fba866e2/attachment-0001.bin>
More information about the libcxx-commits
mailing list