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