mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 03:46:06 +00:00
read and ignore the body of a namespace.
llvm-svn: 41403
This commit is contained in:
parent
e2562ff99d
commit
479ed3aab8
@ -64,7 +64,10 @@ Parser::DeclTy *Parser::ParseNamespace(unsigned Context) {
|
||||
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);
|
||||
|
||||
|
@ -340,7 +340,7 @@ Parser::DeclTy *Parser::ParseExternalDeclaration() {
|
||||
return 0;
|
||||
case tok::kw_namespace:
|
||||
case tok::kw_typedef:
|
||||
// A function definition cannot start with a 'typedef' keyword.
|
||||
// A function definition cannot start with a these keywords.
|
||||
return ParseDeclaration(Declarator::FileContext);
|
||||
default:
|
||||
// We can't tell whether this is a function-definition or declaration yet.
|
||||
|
Loading…
x
Reference in New Issue
Block a user