Skip to content
Snippets Groups Projects
Commit debe9cc4 authored by Christian Kamm's avatar Christian Kamm
Browse files

CPlusPlus: Let functions know about their cv-qualifiers again.

Fixes function argument list code completion not completing the cv
qualifier.

Regression from 9efa5d94.

Task-number: QTCREATORBUG-1037
Reviewed-by: Roberto Raggi
parent 3ef8997f
No related branches found
No related tags found
No related merge requests found
...@@ -197,6 +197,9 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast) ...@@ -197,6 +197,9 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast)
FullySpecifiedType funTy(fun); FullySpecifiedType funTy(fun);
funTy = semantic()->check(ast->cv_qualifier_list, _scope, funTy); funTy = semantic()->check(ast->cv_qualifier_list, _scope, funTy);
fun->setConst(funTy.isConst());
fun->setVolatile(funTy.isVolatile());
_fullySpecifiedType = funTy; _fullySpecifiedType = funTy;
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment