Commit 0e9568da authored by Leandro Melo's avatar Leandro Melo
Browse files

C++: Completion for catch-clause arguments



Task-number: QTCREATORBUG-2822

Change-Id: Ia5a05e1c47c88ef3350b7223578ba800ee464c8c
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
parent 93e3c3f3
......@@ -2098,7 +2098,16 @@ bool Bind::visit(ExceptionDeclarationAST *ast)
}
DeclaratorIdAST *declaratorId = 0;
type = this->declarator(ast->declarator, type, &declaratorId);
const Name *argName = 0;
if (declaratorId && declaratorId->name)
argName = declaratorId->name->name;
Argument *arg = control()->newArgument(location(declaratorId, ast->firstToken()), argName);
arg->setType(type);
_scope->addMember(arg);
// unsigned dot_dot_dot_token = ast->dot_dot_dot_token;
return false;
}
......
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