From 67860249e0649f734f4b481c40d98fa136380859 Mon Sep 17 00:00:00 2001 From: Nikola Smiljanic Date: Fri, 26 Sep 2014 00:28:20 +0000 Subject: -ms-extensions: Implement __super scope specifier (PR13236). We build a NestedNameSpecifier that records the CXXRecordDecl in which __super appeared. Name lookup is performed in all base classes of the recorded CXXRecordDecl. Use of __super is allowed only inside class and member function scope. llvm-svn: 218484 --- clang/lib/Parse/ParseDecl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Parse/ParseDecl.cpp') diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 53e3dbea81f..569234bf558 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -2731,6 +2731,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, goto DoneWithDeclSpec; // typedef-name + case tok::kw___super: case tok::kw_decltype: case tok::identifier: { // This identifier can only be a typedef name if we haven't already seen -- cgit v1.2.3