]> granicus.if.org Git - clang/commitdiff
Changed a 'FIXME' into new comment. Added a test case
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 6 Dec 2008 19:59:02 +0000 (19:59 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 6 Dec 2008 19:59:02 +0000 (19:59 +0000)
testing declaration of properties in categories.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60625 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 19769b82e350186bfad10244914d135556c6ae4f..636a71d9a4b4e18e7ddae3d900d50a4f5b905af0 100644 (file)
@@ -1055,7 +1055,9 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl,
                   &clsMethods[0], clsMethods.size(), AtEndLoc);
   }
   else if (ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(ClassDecl)) {
-    // FIXME: Need to compare properties to those in interface?
+    // Categories are used to extend the class by declaring new methods.
+    // By the same token, they are also used to add new properties. No 
+    // need to compare the added property to those in the class.
 
     // FIXME: If we merge properties into class we should probably
     // merge them into category as well?