r188497 - ObjetiveC migrator: fix the test in my last patch

Fariborz Jahanian fjahanian at apple.com
Thu Aug 15 15:26:10 PDT 2013


Author: fjahanian
Date: Thu Aug 15 17:26:10 2013
New Revision: 188497

URL: http://llvm.org/viewvc/llvm-project?rev=188497&view=rev
Log:
ObjetiveC migrator: fix the test in my last patch
to define real CF_RETURNS_RETAINED/CF_NO_RETURNS_RETAINED
pairs.

Modified:
    cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m
    cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result

Modified: cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m?rev=188497&r1=188496&r2=188497&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m (original)
+++ cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m Thu Aug 15 17:26:10 2013
@@ -4,16 +4,16 @@
 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result
 
 #if __has_feature(attribute_ns_returns_retained)
-#define NS_RETURNS_RETAINED
+#define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
 #endif
 #if __has_feature(attribute_cf_returns_retained)
-#define CF_RETURNS_RETAINED 
+#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
 #endif
 #if __has_feature(attribute_ns_returns_not_retained)
-#define NS_RETURNS_NOT_RETAINED
+#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
 #endif
 #if __has_feature(attribute_cf_returns_not_retained)
-#define CF_RETURNS_NOT_RETAINED
+#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
 #endif
 #if __has_feature(attribute_ns_consumes_self)
 #define NS_CONSUMES_SELF __attribute__((ns_consumes_self))

Modified: cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result?rev=188497&r1=188496&r2=188497&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result (original)
+++ cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result Thu Aug 15 17:26:10 2013
@@ -4,16 +4,16 @@
 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result
 
 #if __has_feature(attribute_ns_returns_retained)
-#define NS_RETURNS_RETAINED
+#define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
 #endif
 #if __has_feature(attribute_cf_returns_retained)
-#define CF_RETURNS_RETAINED 
+#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
 #endif
 #if __has_feature(attribute_ns_returns_not_retained)
-#define NS_RETURNS_NOT_RETAINED
+#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
 #endif
 #if __has_feature(attribute_cf_returns_not_retained)
-#define CF_RETURNS_NOT_RETAINED
+#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
 #endif
 #if __has_feature(attribute_ns_consumes_self)
 #define NS_CONSUMES_SELF __attribute__((ns_consumes_self))
@@ -944,7 +944,7 @@ void IOServiceNameMatching_wrapper(const
   IOServiceNameMatching(name); // expected-warning{{leak}}
 }
 
-CF_RETURNS_RETAINED CFDictionaryRef CreateDict() CF_RETURNS_RETAINED;
+CF_RETURNS_RETAINED CFDictionaryRef CreateDict();
 
 void IOServiceAddNotification_wrapper(mach_port_t masterPort, const io_name_t notificationType,
   mach_port_t wakePort, uintptr_t reference, io_iterator_t * notification ) {





More information about the cfe-commits mailing list