aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-30 03:27:21 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-30 03:27:21 +0000
commitf780abc21c39cd4731b9e38f2d2d9f7d1510bd7b (patch)
tree9b2482dd8a7c43a95ae186d56d8d334dcfa5130a /lib/Parse/ParseDecl.cpp
parentfc820a4394a33e4fccfd8283909d425708311d41 (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.cpp4
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);
}