debugger: special handling for char*

This commit is contained in:
hjk
2009-12-07 12:06:01 +01:00
parent 4794cbf030
commit 32d3db8200
3 changed files with 12 additions and 1 deletions

View File

@@ -268,6 +268,13 @@ bool isPointerType(const QString &type)
return type.endsWith(QLatin1Char('*')) || type.endsWith(QLatin1String("* const"));
}
bool isCharPointerType(const QString &type)
{
return type == QLatin1String("char *")
|| type == QLatin1String("const char *")
|| type == QLatin1String("char const *");
}
bool isAccessSpecifier(const QString &str)
{
static const QStringList items = QStringList()
@@ -569,6 +576,8 @@ GuessChildrenResult guessChildren(const QString &type)
{
if (isIntOrFloatType(type))
return HasNoChildren;
if (isCharPointerType(type))
return HasNoChildren;
if (isPointerType(type))
return HasChildren;
if (type.endsWith(QLatin1String("QString")))