forked from qt-creator/qt-creator
Propagate the Friend specifier.
This commit is contained in:
@@ -174,9 +174,13 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast)
|
|||||||
symbol->setTemplateParameters(_templateParameters);
|
symbol->setTemplateParameters(_templateParameters);
|
||||||
_templateParameters = 0;
|
_templateParameters = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ty.isDeprecated())
|
if (ty.isDeprecated())
|
||||||
symbol->setDeprecated(true);
|
symbol->setDeprecated(true);
|
||||||
|
|
||||||
|
if (ty.isFriend())
|
||||||
|
symbol->setStorage(Symbol::Friend);
|
||||||
|
|
||||||
_scope->enterSymbol(symbol);
|
_scope->enterSymbol(symbol);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user