diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-08-20 18:54:39 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-08-20 18:54:39 +0000 |
| commit | 9427939f65fd757da5b460ca923f1b56ae38a3a0 (patch) | |
| tree | fe8f3957fa3db5fd3178fc38a9c6b9c4155adb15 /clang/test/ARCMT/objcmt-arc-cf-annotations.m | |
| parent | 00b8fe583d70b8785ca30ae64350dca26227d24a (diff) | |
| download | bcm5719-llvm-9427939f65fd757da5b460ca923f1b56ae38a3a0.tar.gz bcm5719-llvm-9427939f65fd757da5b460ca923f1b56ae38a3a0.zip | |
ObjectiveC migrator: More tweaking of heuristics
for an audited cf function and addition of
a test case.
llvm-svn: 188816
Diffstat (limited to 'clang/test/ARCMT/objcmt-arc-cf-annotations.m')
| -rw-r--r-- | clang/test/ARCMT/objcmt-arc-cf-annotations.m | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/ARCMT/objcmt-arc-cf-annotations.m b/clang/test/ARCMT/objcmt-arc-cf-annotations.m index ea041f1202c..91eaecc1c6c 100644 --- a/clang/test/ARCMT/objcmt-arc-cf-annotations.m +++ b/clang/test/ARCMT/objcmt-arc-cf-annotations.m @@ -3,6 +3,22 @@ // RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result +#ifndef CF_IMPLICIT_BRIDGING_ENABLED +#if __has_feature(arc_cf_code_audited) +#define CF_IMPLICIT_BRIDGING_ENABLED _Pragma("clang arc_cf_code_audited begin") +#else +#define CF_IMPLICIT_BRIDGING_ENABLED +#endif +#endif + +#ifndef CF_IMPLICIT_BRIDGING_DISABLED +#if __has_feature(arc_cf_code_audited) +#define CF_IMPLICIT_BRIDGING_DISABLED _Pragma("clang arc_cf_code_audited end") +#else +#define CF_IMPLICIT_BRIDGING_DISABLED +#endif +#endif + #if __has_feature(attribute_ns_returns_retained) #define NS_RETURNS_RETAINED __attribute__((ns_returns_retained)) #endif @@ -2020,3 +2036,8 @@ void rdar13783514(xpc_connection_t connection) { xpc_connection_set_context(connection, [[NSMutableArray alloc] init]); xpc_connection_set_finalizer_f(connection, releaseAfterXPC); } // no-warning + +CFAttributedStringRef CFAttributedCreate(long attributes) CF_RETURNS_RETAINED; +CFTypeID CFGetTypeID(void) { + return 0; +} |

