diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-11 16:27:10 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-11 16:27:10 +0000 |
commit | f24fcff65e3b4c1f6090c7845be0cfee8bbd15d0 (patch) | |
tree | ee8382538b918e62b87de27d112f3008e12aae10 /clang/lib/Parse/ParseDecl.cpp | |
parent | 93e87652f225dc4a36cbc8f24968c4582f8fe86c (diff) | |
download | bcm5719-llvm-f24fcff65e3b4c1f6090c7845be0cfee8bbd15d0.tar.gz bcm5719-llvm-f24fcff65e3b4c1f6090c7845be0cfee8bbd15d0.zip |
Add parser support for static_assert.
llvm-svn: 66661
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |