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 /include/clang/Parse/Parser.h | |
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 'include/clang/Parse/Parser.h')
-rw-r--r-- | include/clang/Parse/Parser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 97c0ca1d45..81af83ce54 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -364,6 +364,7 @@ private: // C99 6.7: Declarations. DeclTy *ParseDeclaration(unsigned Context); + DeclTy *ParseSimpleDeclaration(unsigned Context); DeclTy *ParseInitDeclaratorListAfterFirstDeclarator(Declarator &D); void ParseDeclarationSpecifiers(DeclSpec &DS); void ParseSpecifierQualifierList(DeclSpec &DS); @@ -391,6 +392,12 @@ private: void ParseDirectDeclarator(Declarator &D); void ParseParenDeclarator(Declarator &D); void ParseBracketDeclarator(Declarator &D); + + //===--------------------------------------------------------------------===// + // C++ 7: Declarations [dcl.dcl] + + DeclTy *ParseNamespace(unsigned Context); + }; } // end namespace clang |