read and ignore the body of a namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41403 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/ParseDeclCXX.cpp b/Parse/ParseDeclCXX.cpp
index 50f0c2a..73ae790 100644
--- a/Parse/ParseDeclCXX.cpp
+++ b/Parse/ParseDeclCXX.cpp
@@ -64,7 +64,10 @@
SourceLocation LBrace = ConsumeBrace();
// FIXME: push a scope, push a namespace decl.
- // FIXME: Parse namespace-body
+ while (Tok.getKind() != tok::r_brace && Tok.getKind() != tok::eof) {
+ // FIXME capture the decls.
+ ParseExternalDeclaration();
+ }
SourceLocation RBrace = MatchRHSPunctuation(tok::r_brace, LBrace);