diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-25 06:57:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-25 06:57:03 +0000 |
commit | 8f08cb7d0b97786b17ef05e05caa55aad4d6bd39 (patch) | |
tree | 40e0d0ef5a938181e993edc01be4413ee1daa516 /Parse/Parser.cpp | |
parent | f72617544287acf0281c3b1a733bcb22a02e6ca4 (diff) |
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
Diffstat (limited to 'Parse/Parser.cpp')
-rw-r--r-- | Parse/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parse/Parser.cpp b/Parse/Parser.cpp index 255b48a7ca..0991675481 100644 --- a/Parse/Parser.cpp +++ b/Parse/Parser.cpp @@ -338,6 +338,7 @@ Parser::DeclTy *Parser::ParseExternalDeclaration() { ConsumeToken(); } return 0; + case tok::kw_namespace: case tok::kw_typedef: // A function definition cannot start with a 'typedef' keyword. return ParseDeclaration(Declarator::FileContext); |