diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-24 15:02:46 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-24 15:06:50 +0100 |
commit | c05e11b165139dae9bbbb0d3b3adc518f9169ca6 (patch) | |
tree | 7a1561e85806d916dd561876f9e0ff0f02ff7bbf /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 318bb4c3981fc1fff4c1ffad30875f20ee01d30f (diff) | |
download | qt-creator-c05e11b165139dae9bbbb0d3b3adc518f9169ca6.tar.gz |
Set and propagate the `auto' specifier.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index dcb2364b11..508e2e798b 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -231,6 +231,8 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast) if (ty.isFriend()) symbol->setStorage(Symbol::Friend); + else if (ty.isAuto()) + symbol->setStorage(Symbol::Auto); else if (ty.isRegister()) symbol->setStorage(Symbol::Register); else if (ty.isStatic()) @@ -241,7 +243,8 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast) symbol->setStorage(Symbol::Mutable); else if (ty.isTypedef()) symbol->setStorage(Symbol::Typedef); - else if (ty.isDeprecated()) + + if (ty.isDeprecated()) symbol->setDeprecated(true); if (it->value && it->value->initializer) { |