[cfe-commits] r156127 - in /cfe/trunk: lib/Rewrite/RewriteModernObjC.cpp test/Rewriter/objc-modern-property-attributes.mm

Fariborz Jahanian fjahanian at apple.com
Thu May 3 16:19:33 PDT 2012


Author: fjahanian
Date: Thu May  3 18:19:33 2012
New Revision: 156127

URL: http://llvm.org/viewvc/llvm-project?rev=156127&view=rev
Log:
objc modern translator: fix up attribute for  dynamic property in a category.
// rdar://11095151

Modified:
    cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
    cfe/trunk/test/Rewriter/objc-modern-property-attributes.mm

Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=156127&r1=156126&r2=156127&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Thu May  3 18:19:33 2012
@@ -7160,7 +7160,7 @@
     ClassProperties.push_back(&*I);
   
   Write_prop_list_t_initializer(*this, Context, Result, ClassProperties,
-                                /* Container */0,
+                                /* Container */IDecl,
                                 "_OBJC_$_PROP_LIST_",
                                 FullCategoryName);
   

Modified: cfe/trunk/test/Rewriter/objc-modern-property-attributes.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-modern-property-attributes.mm?rev=156127&r1=156126&r2=156127&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/objc-modern-property-attributes.mm (original)
+++ cfe/trunk/test/Rewriter/objc-modern-property-attributes.mm Thu May  3 18:19:33 2012
@@ -33,3 +33,13 @@
 // CHECK: T@?,C,V__completion
 // CHECK: T@\"PropertyClass\",&,VYVAR
 
+ at interface Test @end
+ at interface Test (Category)
+ at property int q;
+ at end
+
+ at implementation Test (Category)
+ at dynamic q;
+ at end
+
+// CHECK: {{"q","Ti,D"}}





More information about the cfe-commits mailing list