]> granicus.if.org Git - clang/commitdiff
Pass the VirtSpecifiers along to Sema::ActOnCXXMemberDeclarator.
authorAnders Carlsson <andersca@mac.com>
Thu, 20 Jan 2011 03:57:25 +0000 (03:57 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 20 Jan 2011 03:57:25 +0000 (03:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123878 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDeclCXX.cpp

index 36c406476e477b13327b47309757941085a6f649..a7fe528f06697919134f990ce9cd7358d0f3b43c 100644 (file)
@@ -2538,7 +2538,7 @@ public:
   Decl *ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS,
                                  Declarator &D,
                                  MultiTemplateParamsArg TemplateParameterLists,
-                                 Expr *BitfieldWidth,
+                                 Expr *BitfieldWidth, const VirtSpecifiers &VS,
                                  Expr *Init, bool IsDefinition,
                                  bool Deleted = false);
 
index 2341ad39f073b26f1157fa9a682ecd738dabe2a7..0a5a586f73819d249f624aed3a429a928bb5f1eb 100644 (file)
@@ -37,7 +37,8 @@ Decl *Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, Declarator &D,
                                           move(TemplateParams));
   else // FIXME: pass template information through
     FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D,
-                                           move(TemplateParams), 0, 0,
+                                           move(TemplateParams), 0, 
+                                           VirtSpecifiers(), 0,
                                            /*IsDefinition*/true);
 
   HandleMemberFunctionDefaultArgs(D, FnD);
index 0dc367c9fd31d1c61f78057e328bcd96b04d04b7..998a4976d2b5939834c191dd340ad0d5f33c675b 100644 (file)
@@ -1601,7 +1601,7 @@ void Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS,
                                                   DeclaratorInfo,
                                                   move(TemplateParams),
                                                   BitfieldSize.release(),
-                                                  Init.release(),
+                                                  VS, Init.release(),
                                                   /*IsDefinition*/Deleted,
                                                   Deleted);
     }
index a164e5c7b8f1c816d89adff964313244596b9a10..c1523cffc14545ea95144ad6246c52a2f5de2f1d 100644 (file)
@@ -859,7 +859,8 @@ Decl *Sema::ActOnAccessSpecifier(AccessSpecifier Access,
 Decl *
 Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D,
                                MultiTemplateParamsArg TemplateParameterLists,
-                               ExprTy *BW, ExprTy *InitExpr, bool IsDefinition,
+                               ExprTy *BW, const VirtSpecifiers &VS,
+                               ExprTy *InitExpr, bool IsDefinition,
                                bool Deleted) {
   const DeclSpec &DS = D.getDeclSpec();
   DeclarationNameInfo NameInfo = GetNameForDeclarator(D);