summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckSpecifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/cplusplus/CheckSpecifier.cpp')
-rw-r--r--src/shared/cplusplus/CheckSpecifier.cpp6
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;
}