Commit 16b1e8b4 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Renamed Symboo::isScopedSymbol().

parent b2baaee4
...@@ -177,7 +177,7 @@ QVariant OverviewModel::data(const QModelIndex &index, int role) const ...@@ -177,7 +177,7 @@ QVariant OverviewModel::data(const QModelIndex &index, int role) const
name = QLatin1Char('+') + name; name = QLatin1Char('+') + name;
else else
name = QLatin1Char('-') + name; name = QLatin1Char('-') + name;
} else if (! symbol->isScopedSymbol() || symbol->isFunction()) { } else if (! symbol->isScope() || symbol->isFunction()) {
QString type = _overview.prettyType(symbol->type()); QString type = _overview.prettyType(symbol->type());
if (! type.isEmpty()) { if (! type.isEmpty()) {
if (! symbol->type()->isFunctionType()) if (! symbol->type()->isFunctionType())
......
...@@ -84,7 +84,7 @@ static void debugCppSymbolRecursion(QTextStream &str, const Overview &o, ...@@ -84,7 +84,7 @@ static void debugCppSymbolRecursion(QTextStream &str, const Overview &o,
str << " declaration"; str << " declaration";
if (s.isBlock()) if (s.isBlock())
str << " block"; str << " block";
if (doRecurse && s.isScopedSymbol()) { if (doRecurse && s.isScope()) {
const Scope *scoped = s.asScope(); const Scope *scoped = s.asScope();
const int size = scoped->memberCount(); const int size = scoped->memberCount();
str << " scoped symbol of " << size << '\n'; str << " scoped symbol of " << size << '\n';
......
...@@ -344,7 +344,7 @@ bool Symbol::isProtected() const ...@@ -344,7 +344,7 @@ bool Symbol::isProtected() const
bool Symbol::isPrivate() const bool Symbol::isPrivate() const
{ return _visibility == Private; } { return _visibility == Private; }
bool Symbol::isScopedSymbol() const bool Symbol::isScope() const
{ return asScope() != 0; } { return asScope() != 0; }
bool Symbol::isEnum() const bool Symbol::isEnum() const
......
...@@ -156,8 +156,8 @@ public: ...@@ -156,8 +156,8 @@ public:
/// Returns true if this Symbol's visibility is private. /// Returns true if this Symbol's visibility is private.
bool isPrivate() const; bool isPrivate() const;
/// Returns true if this Symbol is a ScopedSymbol. /// Returns true if this Symbol is a Scope.
bool isScopedSymbol() const; bool isScope() const;
/// Returns true if this Symbol is an Enum. /// Returns true if this Symbol is an Enum.
bool isEnum() const; bool isEnum() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment