From 51fbf9695ccb07e853c04ac77d31926ada2afaa2 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 26 May 2010 13:49:06 +0200 Subject: Added support for the GCC "unavailable" attribute. --- src/shared/cplusplus/CheckSpecifier.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/shared/cplusplus/CheckSpecifier.cpp') 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; } -- cgit v1.2.1