diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-30 03:27:21 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-30 03:27:21 +0000 |
commit | f780abc21c39cd4731b9e38f2d2d9f7d1510bd7b (patch) | |
tree | 9b2482dd8a7c43a95ae186d56d8d334dcfa5130a /lib/Parse/ParseDecl.cpp | |
parent | fc820a4394a33e4fccfd8283909d425708311d41 (diff) |
Parser support for C++ using directives, from Piotr Rak
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 23c0c61517..a410dfeda3 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -216,6 +216,8 @@ void Parser::FuzzyParseMicrosoftDeclSpec() { /// others [FIXME] /// [C++] template-declaration /// [C++] namespace-definition +/// [C++] using-directive +/// [C++] using-declaration [TODO] /// others... [FIXME] /// Parser::DeclTy *Parser::ParseDeclaration(unsigned Context) { @@ -225,6 +227,8 @@ Parser::DeclTy *Parser::ParseDeclaration(unsigned Context) { return ParseTemplateDeclaration(Context); case tok::kw_namespace: return ParseNamespace(Context); + case tok::kw_using: + return ParseUsingDirectiveOrDeclaration(Context); default: return ParseSimpleDeclaration(Context); } |