From f24fcff65e3b4c1f6090c7845be0cfee8bbd15d0 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 11 Mar 2009 16:27:10 +0000 Subject: Add parser support for static_assert. llvm-svn: 66661 --- clang/lib/Parse/ParseDecl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Parse/ParseDecl.cpp') diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 5bf9783cfbe..56a1decb596 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -225,6 +225,7 @@ void Parser::FuzzyParseMicrosoftDeclSpec() { /// [C++] namespace-definition /// [C++] using-directive /// [C++] using-declaration [TODO] +// [C++0x] static_assert-declaration /// others... [FIXME] /// Parser::DeclTy *Parser::ParseDeclaration(unsigned Context) { @@ -236,6 +237,8 @@ Parser::DeclTy *Parser::ParseDeclaration(unsigned Context) { return ParseNamespace(Context); case tok::kw_using: return ParseUsingDirectiveOrDeclaration(Context); + case tok::kw_static_assert: + return ParseStaticAssertDeclaration(); default: return ParseSimpleDeclaration(Context); } -- cgit v1.2.3