forked from qt-creator/qt-creator
Debugger: Fix display of std::array<some_struct>
Change-Id: Ib2aa41d6a059246e15d1f42831bdec96c235161e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -1187,7 +1187,7 @@ class Dumper(DumperBase):
|
||||
def putArrayData(self, type, base, n,
|
||||
childNumChild = None, maxNumChild = 10000):
|
||||
if not self.tryPutArrayContents(type, base, n):
|
||||
base = base.cast(type.pointer())
|
||||
base = self.createPointerValue(base, type)
|
||||
with Children(self, n, type, childNumChild, maxNumChild,
|
||||
base, type.sizeof):
|
||||
for i in self.childRange():
|
||||
|
||||
@@ -2595,7 +2595,9 @@ void tst_Dumpers::dumper_data()
|
||||
% Cxx11Profile()
|
||||
% MacLibCppProfile()
|
||||
% Check("a", "<4 items>", Pattern("std::array<int, 4.*>"))
|
||||
% Check("b", "<4 items>", Pattern("std::array<@QString, 4.*>"));
|
||||
% Check("a.0", "[0]", "1", "int")
|
||||
% Check("b", "<4 items>", Pattern("std::array<@QString, 4.*>"))
|
||||
% Check("b.0", "[0]", "\"1\"", "@QString");
|
||||
|
||||
QTest::newRow("StdComplex")
|
||||
<< Data("#include <complex>\n",
|
||||
|
||||
Reference in New Issue
Block a user