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:
hjk
2009-07-14 11:21:52 +02:00
parent 92a0f39fe1
commit 4bf3d32f61
3 changed files with 26 additions and 2 deletions

View File

@@ -73,6 +73,10 @@ bool extractTemplate(const QString &type, QString *tmplate, QString *inner);
QString extractTypeFromPTypeOutput(const QString &str);
bool isIntOrFloatType(const QString &type);
bool isIntType(const QString &type);
enum GuessChildrenResult { HasChildren, HasNoChildren, HasPossiblyChildren };
GuessChildrenResult guessChildren(const QString &type);
QString sizeofTypeExpression(const QString &type);
QString quoteUnprintableLatin1(const QByteArray &ba);