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,7 +1318,7 @@ public:
|
|||
|
||||
Decl *ActOnDeclarator(Scope *S, Declarator &D);
|
||||
|
||||
Decl *HandleDeclarator(Scope *S, Declarator &D,
|
||||
NamedDecl *HandleDeclarator(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParameterLists);
|
||||
void RegisterLocallyScopedExternCDecl(NamedDecl *ND,
|
||||
const LookupResult &Previous,
|
||||
|
@ -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,7 +4445,7 @@ public:
|
|||
TypeSourceInfo *TSInfo);
|
||||
Decl *ActOnFriendTypeDecl(Scope *S, const DeclSpec &DS,
|
||||
MultiTemplateParamsArg TemplateParams);
|
||||
Decl *ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
NamedDecl *ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParams);
|
||||
|
||||
QualType CheckConstructorDeclarator(Declarator &D, QualType R,
|
||||
|
|
|
@ -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,7 +3662,7 @@ bool Sema::diagnoseQualifiedDeclaration(CXXScopeSpec &SS, DeclContext *DC,
|
|||
return false;
|
||||
}
|
||||
|
||||
Decl *Sema::HandleDeclarator(Scope *S, Declarator &D,
|
||||
NamedDecl *Sema::HandleDeclarator(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParamLists) {
|
||||
// TODO: consider using NameInfo for diagnostic.
|
||||
DeclarationNameInfo NameInfo = GetNameForDeclarator(D);
|
||||
|
|
|
@ -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,7 +10547,7 @@ Decl *Sema::ActOnFriendTypeDecl(Scope *S, const DeclSpec &DS,
|
|||
return D;
|
||||
}
|
||||
|
||||
Decl *Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
NamedDecl *Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D,
|
||||
MultiTemplateParamsArg TemplateParams) {
|
||||
const DeclSpec &DS = D.getDeclSpec();
|
||||
|
||||
|
|
Loading…
Reference in New Issue