Skip to content
Snippets Groups Projects
Commit 2023cf1e authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Propagate the Friend specifier.

parent aab9c520
No related branches found
No related tags found
No related merge requests found
...@@ -174,9 +174,13 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment