diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-06-28 23:36:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-06-28 23:36:30 +0000 |
| commit | 4a927cba2e110c81d55fd733139e6309d94172f8 (patch) | |
| tree | 93437b27ab4007f1b4a533b77348d551a36cbf0c /clang/lib/Sema/Sema.h | |
| parent | 2e052a81fd806c90605abaef19f40feb54aa825c (diff) | |
| download | bcm5719-llvm-4a927cba2e110c81d55fd733139e6309d94172f8.tar.gz bcm5719-llvm-4a927cba2e110c81d55fd733139e6309d94172f8.zip | |
adjust the prototypes of a bunch of decl processing methods to take
the single attribute they look at by reference instead of by pointer.
This is a subtle indicator that they take the specified attribute, not
a whole list of them.
This also make HandleExtVectorTypeAttribute work the same way as the rest
of the attributes, adds some comments etc. No functionality change.
llvm-svn: 52871
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 73468dc579c..ea551093b8d 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -303,14 +303,14 @@ private: // Decl attributes - this routine is the top level dispatcher. void HandleDeclAttributes(Decl *New, const AttributeList *DeclSpecAttrs, const AttributeList *DeclaratorAttrs); - void HandleDeclAttribute(Decl *New, const AttributeList *rawAttr); + void HandleDeclAttribute(Decl *New, const AttributeList &Attr); /// HandleAddressSpaceTypeAttribute - this attribute is only applicable to /// objects without automatic storage duration. /// The raw attribute contains 1 argument, the id of the address space /// for the type. QualType HandleAddressSpaceTypeAttribute(QualType curType, - const AttributeList *rawAttr); + const AttributeList &Attr); /// HandleModeAttribute - this attribute modifies the width of a decl with /// primitive type. Note that this is a variable attribute, and not @@ -326,25 +326,23 @@ private: // for the variable, measured in bytes. If curType and rawAttr are well // formed, this routine will return a new vector type. QualType HandleVectorTypeAttribute(QualType curType, - const AttributeList *rawAttr); - void HandleExtVectorTypeAttribute(TypedefDecl *d, - const AttributeList *rawAttr); - - void HandleAlignedAttribute(Decl *d, const AttributeList *rawAttr); - void HandleAliasAttribute(Decl *d, const AttributeList *rawAttr); - void HandlePackedAttribute(Decl *d, const AttributeList *rawAttr); - void HandleAnnotateAttribute(Decl *d, const AttributeList *rawAttr); - void HandleNoReturnAttribute(Decl *d, const AttributeList *rawAttr); - void HandleDeprecatedAttribute(Decl *d, const AttributeList *rawAttr); - void HandleWeakAttribute(Decl *d, const AttributeList *rawAttr); - void HandleDLLImportAttribute(Decl *d, const AttributeList *rawAttr); - void HandleDLLExportAttribute(Decl *d, const AttributeList *rawAttr); - void HandleVisibilityAttribute(Decl *d, const AttributeList *rawAttr); - void HandleNothrowAttribute(Decl *d, const AttributeList *rawAttr); - void HandleFormatAttribute(Decl *d, const AttributeList *rawAttr); - void HandleStdCallAttribute(Decl *d, const AttributeList *rawAttr); - void HandleFastCallAttribute(Decl *d, const AttributeList *rawAttr); - void HandleTransparentUnionAttribute(Decl *d, const AttributeList *rawAttr); + const AttributeList &Attr); + void HandleExtVectorTypeAttribute(Decl *d, const AttributeList &Attr); + void HandleAlignedAttribute(Decl *d, const AttributeList &Attr); + void HandleAliasAttribute(Decl *d, const AttributeList &Attr); + void HandlePackedAttribute(Decl *d, const AttributeList &Attr); + void HandleAnnotateAttribute(Decl *d, const AttributeList &Attr); + void HandleNoReturnAttribute(Decl *d, const AttributeList &Attr); + void HandleDeprecatedAttribute(Decl *d, const AttributeList &Attr); + void HandleWeakAttribute(Decl *d, const AttributeList &Attr); + void HandleDLLImportAttribute(Decl *d, const AttributeList &Attr); + void HandleDLLExportAttribute(Decl *d, const AttributeList &Attr); + void HandleVisibilityAttribute(Decl *d, const AttributeList &Attr); + void HandleNothrowAttribute(Decl *d, const AttributeList &Attr); + void HandleFormatAttribute(Decl *d, const AttributeList &Attr); + void HandleStdCallAttribute(Decl *d, const AttributeList &Attr); + void HandleFastCallAttribute(Decl *d, const AttributeList &Attr); + void HandleTransparentUnionAttribute(Decl *d, const AttributeList &Attr); void WarnUndefinedMethod(SourceLocation ImpLoc, ObjCMethodDecl *method, bool &IncompleteImpl); |

