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
+@interface Test @end
+@interface Test (Category)
+@property int q;
+@end
+
+@implementation Test (Category)
+@dynamic q;
+@end
+
+// CHECK: {{"q","Ti,D"}}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits