summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-05-04 17:04:30 +0000
committerTed Kremenek <kremenek@apple.com>2009-05-04 17:04:30 +0000
commitbc76c72f9400a48f05c001f1f6c9fbee10dd50d8 (patch)
tree081b1bf36bea9ba4f4e71d89e1f8409d06009f82 /clang/lib/Sema/SemaDeclObjC.cpp
parentbef2ee4322cdacf31e76e054f5292bf9584b3345 (diff)
downloadbcm5719-llvm-bc76c72f9400a48f05c001f1f6c9fbee10dd50d8.tar.gz
bcm5719-llvm-bc76c72f9400a48f05c001f1f6c9fbee10dd50d8.zip
Remove support for ObjCMethodDecl attributes that appear between the
return type and the selector. This is inconsistent with C functions (where such attributes would be placed on the return type, not the the FunctionDecl), and is inconsistent with what people are use to seeing. llvm-svn: 70878
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 80b30bdb74c..0e655a493da 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -1557,7 +1557,6 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration(
// from the Sel.getNumArgs().
ObjCArgInfo *ArgInfo,
llvm::SmallVectorImpl<Declarator> &Cdecls,
- AttributeList *ReturnAttrList,
AttributeList *AttrList, tok::ObjCKeywordKind MethodDeclKind,
bool isVariadic) {
Decl *ClassDecl = classDecl.getAs<Decl>();
@@ -1640,9 +1639,6 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration(
if (AttrList)
ProcessDeclAttributeList(ObjCMethod, AttrList);
- if (ReturnAttrList)
- ProcessObjCMethDeclReturnAttributeList(ObjCMethod, ReturnAttrList);
-
// For implementations (which can be very "coarse grain"), we add the
// method now. This allows the AST to implement lookup methods that work
// incrementally (without waiting until we parse the @end). It also allows
OpenPOWER on IntegriCloud