forked from OSchip/llvm-project
Tighten types a bit. No functionality change.
llvm-svn: 171894
This commit is contained in:
parent
9360953135
commit
0a67e2fc8b
|
@ -1318,8 +1318,8 @@ public:
|
|||
|
||||
Decl *ActOnDeclarator(Scope *S, Declarator &D);
|
||||
|
||||
Decl *HandleDeclarator(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParameterLists);
|
||||
NamedDecl *HandleDeclarator(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParameterLists);
|
||||
void RegisterLocallyScopedExternCDecl(NamedDecl *ND,
|
||||
const LookupResult &Previous,
|
||||
Scope *S);
|
||||
|
@ -4285,7 +4285,7 @@ public:
|
|||
SourceLocation ColonLoc,
|
||||
AttributeList *Attrs = 0);
|
||||
|
||||
Decl *ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS,
|
||||
NamedDecl *ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS,
|
||||
Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParameterLists,
|
||||
Expr *BitfieldWidth, const VirtSpecifiers &VS,
|
||||
|
@ -4445,8 +4445,8 @@ public:
|
|||
TypeSourceInfo *TSInfo);
|
||||
Decl *ActOnFriendTypeDecl(Scope *S, const DeclSpec &DS,
|
||||
MultiTemplateParamsArg TemplateParams);
|
||||
Decl *ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParams);
|
||||
NamedDecl *ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParams);
|
||||
|
||||
QualType CheckConstructorDeclarator(Declarator &D, QualType R,
|
||||
StorageClass& SC);
|
||||
|
|
|
@ -2162,7 +2162,7 @@ void Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS,
|
|||
// this call will *not* return the created decl; It will return null.
|
||||
// See Sema::ActOnCXXMemberDeclarator for details.
|
||||
|
||||
Decl *ThisDecl = 0;
|
||||
NamedDecl *ThisDecl = 0;
|
||||
if (DS.isFriendSpecified()) {
|
||||
// C++11 [dcl.attr.grammar] p4: If an attribute-specifier-seq appertains
|
||||
// to a friend declaration, that declaration shall be a definition.
|
||||
|
|
|
@ -3662,8 +3662,8 @@ bool Sema::diagnoseQualifiedDeclaration(CXXScopeSpec &SS, DeclContext *DC,
|
|||
return false;
|
||||
}
|
||||
|
||||
Decl *Sema::HandleDeclarator(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParamLists) {
|
||||
NamedDecl *Sema::HandleDeclarator(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParamLists) {
|
||||
// TODO: consider using NameInfo for diagnostic.
|
||||
DeclarationNameInfo NameInfo = GetNameForDeclarator(D);
|
||||
DeclarationName Name = NameInfo.getName();
|
||||
|
|
|
@ -1565,7 +1565,7 @@ static bool InitializationHasSideEffects(const FieldDecl &FD) {
|
|||
/// bitfield width if there is one, 'InitExpr' specifies the initializer if
|
||||
/// one has been parsed, and 'InitStyle' is set if an in-class initializer is
|
||||
/// present (but parsing it has been deferred).
|
||||
Decl *
|
||||
NamedDecl *
|
||||
Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParameterLists,
|
||||
Expr *BW, const VirtSpecifiers &VS,
|
||||
|
@ -1666,7 +1666,7 @@ Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D,
|
|||
DS.getStorageClassSpec() == DeclSpec::SCS_mutable) &&
|
||||
!isFunc);
|
||||
|
||||
Decl *Member;
|
||||
NamedDecl *Member;
|
||||
if (isInstField) {
|
||||
CXXScopeSpec &SS = D.getCXXScopeSpec();
|
||||
|
||||
|
@ -10547,8 +10547,8 @@ Decl *Sema::ActOnFriendTypeDecl(Scope *S, const DeclSpec &DS,
|
|||
return D;
|
||||
}
|
||||
|
||||
Decl *Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParams) {
|
||||
NamedDecl *Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParams) {
|
||||
const DeclSpec &DS = D.getDeclSpec();
|
||||
|
||||
assert(DS.isFriendSpecified());
|
||||
|
|
Loading…
Reference in New Issue