forked from qt-creator/qt-creator
Merge branch '1.3'
This commit is contained in:
@@ -361,8 +361,10 @@ QList<Scope *> LookupContext::visibleScopes(const LookupItem &result) const
|
||||
QList<Scope *> LookupContext::visibleScopes(Symbol *symbol) const
|
||||
{
|
||||
QList<Scope *> scopes;
|
||||
for (Scope *scope = symbol->scope(); scope; scope = scope->enclosingScope())
|
||||
scopes.append(scope);
|
||||
if (symbol) {
|
||||
for (Scope *scope = symbol->scope(); scope; scope = scope->enclosingScope())
|
||||
scopes.append(scope);
|
||||
}
|
||||
scopes += visibleScopes();
|
||||
scopes = expand(scopes);
|
||||
return scopes;
|
||||
|
||||
@@ -90,6 +90,8 @@ void NamePrettyPrinter::visit(const TemplateNameId *name)
|
||||
else
|
||||
_name += arg;
|
||||
}
|
||||
if (! _name.isEmpty() && _name.at(_name.length() - 1) == '>')
|
||||
_name += QLatin1Char(' ');
|
||||
_name += QLatin1Char('>');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user