forked from qt-creator/qt-creator
CPlusPlus: Let functions know about their cv-qualifiers again.
Fixes function argument list code completion not completing the cv
qualifier.
Regression from 9efa5d940a.
Task-number: QTCREATORBUG-1037
Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -197,6 +197,9 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast)
|
||||
FullySpecifiedType funTy(fun);
|
||||
funTy = semantic()->check(ast->cv_qualifier_list, _scope, funTy);
|
||||
|
||||
fun->setConst(funTy.isConst());
|
||||
fun->setVolatile(funTy.isVolatile());
|
||||
|
||||
_fullySpecifiedType = funTy;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user