]> granicus.if.org Git - clang/commitdiff
Fix a misleading comment.
authorSteve Naroff <snaroff@apple.com>
Sat, 10 Jan 2009 22:55:25 +0000 (22:55 +0000)
committerSteve Naroff <snaroff@apple.com>
Sat, 10 Jan 2009 22:55:25 +0000 (22:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62031 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjC.cpp

index ef7b142e3c3d07036ffc1f6525fd20c3044870da..a285d7533a99bdbd553b3e8e26c9a291ae522701 100644 (file)
@@ -136,8 +136,8 @@ void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
 // having a GenerateFunction which takes the body Stmt.
 
 /// GenerateObjCGetter - Generate an Objective-C property getter
-/// function. The given Decl must be either an ObjCCategoryImplDecl
-/// or an ObjCImplementationDecl.
+/// function. The given Decl must be an ObjCImplementationDecl. @synthesize
+/// is illegal within a category.
 void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP,
                                          const ObjCPropertyImplDecl *PID) {
   ObjCIvarDecl *Ivar = PID->getPropertyIvarDecl();
@@ -206,8 +206,8 @@ void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP,
 }
 
 /// GenerateObjCSetter - Generate an Objective-C property setter
-/// function. The given Decl must be either an ObjCCategoryImplDecl
-/// or an ObjCImplementationDecl.
+/// function. The given Decl must be an ObjCImplementationDecl. @synthesize
+/// is illegal within a category.
 void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP,
                                          const ObjCPropertyImplDecl *PID) {
   ObjCIvarDecl *Ivar = PID->getPropertyIvarDecl();