Commit 19e15d33 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++11: Add static_assert as block declaration.



Change-Id: I35c93b7a970a7b659a4bca7b680c2db776dc07ab
Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent 3f5dc36a
......@@ -2998,7 +2998,7 @@ bool Parser::parseExpressionOrDeclarationStatement(StatementAST *&node)
const unsigned start = cursor();
if (lookAtCVQualifier() || lookAtStorageClassSpecifier() || lookAtBuiltinTypeSpecifier() || LA() == T_TYPENAME || LA() == T_ENUM || lookAtClassKey())
if (lookAtCVQualifier() || lookAtStorageClassSpecifier() || lookAtBuiltinTypeSpecifier() || LA() == T_TYPENAME || LA() == T_ENUM || lookAtClassKey() || LA() == T_STATIC_ASSERT)
return parseDeclarationStatement(node);
if (LA() == T_IDENTIFIER || (LA() == T_COLON_COLON && LA(2) == T_IDENTIFIER)) {
......@@ -3383,6 +3383,9 @@ bool Parser::parseBlockDeclaration(DeclarationAST *&node)
case T_NAMESPACE:
return parseNamespaceAliasDefinition(node);
case T_STATIC_ASSERT:
return parseStaticAssertDeclaration(node);
default:
return parseSimpleDeclaration(node);
} // switch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment