Add parser support for static_assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66661 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp
index 5bf9783..56a1dec 100644
--- a/lib/Parse/ParseDecl.cpp
+++ b/lib/Parse/ParseDecl.cpp
@@ -225,6 +225,7 @@
/// [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 @@
return ParseNamespace(Context);
case tok::kw_using:
return ParseUsingDirectiveOrDeclaration(Context);
+ case tok::kw_static_assert:
+ return ParseStaticAssertDeclaration();
default:
return ParseSimpleDeclaration(Context);
}