forked from qt-creator/qt-creator
debugger: special handling for char*
This commit is contained in:
@@ -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")))
|
||||
|
||||
Reference in New Issue
Block a user