refactor enough of the top-level parsing logic to parse and
ignore 'namespace foo {}'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41400 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/Parser.cpp b/Parse/Parser.cpp
index 255b48a..0991675 100644
--- a/Parse/Parser.cpp
+++ b/Parse/Parser.cpp
@@ -338,6 +338,7 @@
ConsumeToken();
}
return 0;
+ case tok::kw_namespace:
case tok::kw_typedef:
// A function definition cannot start with a 'typedef' keyword.
return ParseDeclaration(Declarator::FileContext);