diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-05-26 13:49:06 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-05-26 13:49:06 +0200 |
commit | 51fbf9695ccb07e853c04ac77d31926ada2afaa2 (patch) | |
tree | 18be1e094a77338fa6dd4054a1d060530b49df93 /src/shared/cplusplus/CheckSpecifier.cpp | |
parent | 9e89f36cd93633c02f7767a589921bc7c4da8e23 (diff) | |
download | qt-creator-51fbf9695ccb07e853c04ac77d31926ada2afaa2.tar.gz |
Added support for the GCC "unavailable" attribute.
Diffstat (limited to 'src/shared/cplusplus/CheckSpecifier.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckSpecifier.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/cplusplus/CheckSpecifier.cpp b/src/shared/cplusplus/CheckSpecifier.cpp index f2c60c57de..183962f66d 100644 --- a/src/shared/cplusplus/CheckSpecifier.cpp +++ b/src/shared/cplusplus/CheckSpecifier.cpp @@ -439,8 +439,12 @@ bool CheckSpecifier::visit(TypeofSpecifierAST *ast) bool CheckSpecifier::visit(AttributeAST *ast) { if (ast->identifier_token) { - if (identifier(ast->identifier_token) == control()->deprecatedId()) + const Identifier *id = identifier(ast->identifier_token); + + if (id == control()->deprecatedId()) _fullySpecifiedType.setDeprecated(true); + else if (id == control()->unavailableId()) + _fullySpecifiedType.setUnavailable(true); } return false; } |