diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-04-19 09:39:00 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-04-19 09:39:00 +0200 |
commit | debe9cc4f717cf0550bb141c716397bbae0ef85f (patch) | |
tree | 22ddafa81d9839d95540a758f6724caf7a4d1e66 /src/shared/cplusplus/CheckDeclarator.cpp | |
parent | 3ef8997f03d65965a17fd79de9635517998c2d9b (diff) | |
download | qt-creator-debe9cc4f717cf0550bb141c716397bbae0ef85f.tar.gz |
CPlusPlus: Let functions know about their cv-qualifiers again.
Fixes function argument list code completion not completing the cv
qualifier.
Regression from 9efa5d940acd0d000cc76515d5dbafa519c3d33f.
Task-number: QTCREATORBUG-1037
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/shared/cplusplus/CheckDeclarator.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclarator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp index dfb045b3a0..84edbd0292 100644 --- a/src/shared/cplusplus/CheckDeclarator.cpp +++ b/src/shared/cplusplus/CheckDeclarator.cpp @@ -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; } |