forked from qt-creator/qt-creator
debugger: assume that not-known-to-be-simple types have children
This might lead to false positives in corner cases like empty structures but speed up the display of arrays and lists of user-defined types a lot.
This commit is contained in:
@@ -337,6 +337,17 @@ bool isIntOrFloatType(const QString &type)
|
||||
return isIntType(type) || types.contains(type);
|
||||
}
|
||||
|
||||
GuessChildrenResult guessChildren(const QString &type)
|
||||
{
|
||||
if (isIntOrFloatType(type))
|
||||
return HasNoChildren;
|
||||
if (isPointerType(type))
|
||||
return HasChildren;
|
||||
if (type.endsWith(QLatin1String("QString")))
|
||||
return HasNoChildren;
|
||||
return HasPossiblyChildren;
|
||||
}
|
||||
|
||||
QString sizeofTypeExpression(const QString &type)
|
||||
{
|
||||
if (type.endsWith(QLatin1Char('*')))
|
||||
|
||||
Reference in New Issue
Block a user