summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-04-15 14:33:20 +0200
committerhjk <hjk@theqtcompany.com>2015-04-15 12:59:12 +0000
commitaee5668b623eb9040378ddd20a3ebed118fc7cd5 (patch)
tree2a676bac380cf9e3d7d428d151af0c3686918723 /tests/auto
parent6cf2167b91205842cb1e82d0bfdb637d9ac1c57e (diff)
downloadqt-creator-aee5668b623eb9040378ddd20a3ebed118fc7cd5.tar.gz
Debugger: Handle char const* and const char* the same in types
Helps recognition of default std::maps and makes the StdMapQt dumper test pass with LLDB on Linux Change-Id: I2d2a91d65e895c7fc2c99e24cc77d21ca6353b22 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/debugger/tst_simplifytypes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_simplifytypes.cpp b/tests/auto/debugger/tst_simplifytypes.cpp
index 495c09ae4c..2251e8ca5e 100644
--- a/tests/auto/debugger/tst_simplifytypes.cpp
+++ b/tests/auto/debugger/tst_simplifytypes.cpp
@@ -49,6 +49,7 @@ const char *description[] =
"g++_unordered_set",
"g++_unordered_map",
"g++_stdvector_int_ptr",
+ "g++_stdmap_char_ptr",
"libc++_stringvector",
"libc++_unordered_map",
@@ -83,7 +84,9 @@ const char *input[] =
"std::unordered_set<int, std::hash<int>, std::equal_to<int>, std::allocator<int> >",
"std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, int> > >",
+
"std::vector<int *, std::allocator<int*> >",
+"std::map<const char *, Foo, std::less<const char *>, std::allocator<std::pair<char const* const, Foo> > >",
// libc++
"std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >",
@@ -122,6 +125,7 @@ const char *output[] =
"std::unordered_set<int>",
"std::unordered_map<int, int>",
"std::vector<int *>",
+ "std::map<const char *, Foo>",
// libc++
"std::vector<std::string>",
"std::unordered_map<std::string, float>",