diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-05-03 21:44:12 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-05-03 21:44:12 +0000 |
commit | 8b08adb279e7db69c65461f7c0029344dc3e4e5f (patch) | |
tree | 37d08c2d341967c40402e9690eb2dee121ab1d5b /test/Rewriter | |
parent | f9e156c774e08409f235f0e9c9e3133ec796e877 (diff) |
modern objc translator: used size_t in couple
of places. // rdar://11375908
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Rewriter')
-rw-r--r-- | test/Rewriter/objc-bool-literal-modern-1.mm | 3 | ||||
-rw-r--r-- | test/Rewriter/rewrite-block-literal-1.mm | 3 | ||||
-rw-r--r-- | test/Rewriter/rewrite-block-literal.mm | 3 | ||||
-rw-r--r-- | test/Rewriter/rewrite-block-pointer.mm | 3 | ||||
-rw-r--r-- | test/Rewriter/rewrite-byref-in-nested-blocks.mm | 3 | ||||
-rw-r--r-- | test/Rewriter/rewrite-foreach-in-block.mm | 2 | ||||
-rw-r--r-- | test/Rewriter/rewrite-modern-block-consts.mm | 3 | ||||
-rw-r--r-- | test/Rewriter/rewrite-modern-block.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-modern-extern-c-func-decl.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-modern-typeof.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-nested-blocks-1.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-nested-blocks-2.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-nested-blocks.mm | 1 | ||||
-rwxr-xr-x | test/Rewriter/rewrite-nested-property-in-blocks.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-rewritten-initializer.mm | 1 | ||||
-rw-r--r-- | test/Rewriter/rewrite-unique-block-api.mm | 1 |
16 files changed, 29 insertions, 0 deletions
diff --git a/test/Rewriter/objc-bool-literal-modern-1.mm b/test/Rewriter/objc-bool-literal-modern-1.mm index 782517242e..7aaa79b1e9 100644 --- a/test/Rewriter/objc-bool-literal-modern-1.mm +++ b/test/Rewriter/objc-bool-literal-modern-1.mm @@ -2,6 +2,9 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"__declspec(X)=" %t-rw.cpp // rdar://11231426 +// rdar://11375908 +typedef unsigned long size_t; + typedef bool BOOL; BOOL yes() { diff --git a/test/Rewriter/rewrite-block-literal-1.mm b/test/Rewriter/rewrite-block-literal-1.mm index f152117443..c1b8bcc9a1 100644 --- a/test/Rewriter/rewrite-block-literal-1.mm +++ b/test/Rewriter/rewrite-block-literal-1.mm @@ -5,6 +5,9 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp // rdar://11259664 +// rdar://11375908 +typedef unsigned long size_t; + void *sel_registerName(const char *); typedef void (^BLOCK_TYPE)(void); diff --git a/test/Rewriter/rewrite-block-literal.mm b/test/Rewriter/rewrite-block-literal.mm index 083312e79d..f941e656e7 100644 --- a/test/Rewriter/rewrite-block-literal.mm +++ b/test/Rewriter/rewrite-block-literal.mm @@ -5,6 +5,9 @@ // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp +// rdar://11375908 +typedef unsigned long size_t; + // rdar: // 11006566 void I( void (^)(void)); diff --git a/test/Rewriter/rewrite-block-pointer.mm b/test/Rewriter/rewrite-block-pointer.mm index 58407a7ac5..1738c3e43b 100644 --- a/test/Rewriter/rewrite-block-pointer.mm +++ b/test/Rewriter/rewrite-block-pointer.mm @@ -4,6 +4,9 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp // radar 7638400 +// rdar://11375908 +typedef unsigned long size_t; + typedef void * id; void *sel_registerName(const char *); diff --git a/test/Rewriter/rewrite-byref-in-nested-blocks.mm b/test/Rewriter/rewrite-byref-in-nested-blocks.mm index 1583945b2c..15b9107342 100644 --- a/test/Rewriter/rewrite-byref-in-nested-blocks.mm +++ b/test/Rewriter/rewrite-byref-in-nested-blocks.mm @@ -4,6 +4,9 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-modern-rw.cpp // radar 7692350 +// rdar://11375908 +typedef unsigned long size_t; + void f(void (^block)(void)); @interface X { diff --git a/test/Rewriter/rewrite-foreach-in-block.mm b/test/Rewriter/rewrite-foreach-in-block.mm index fd34212d67..4fadd33695 100644 --- a/test/Rewriter/rewrite-foreach-in-block.mm +++ b/test/Rewriter/rewrite-foreach-in-block.mm @@ -4,6 +4,8 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp // rdar:// 9878420 +typedef unsigned long size_t; + void objc_enumerationMutation(id); void *sel_registerName(const char *); typedef void (^CoreDAVCompletionBlock)(void); diff --git a/test/Rewriter/rewrite-modern-block-consts.mm b/test/Rewriter/rewrite-modern-block-consts.mm index 7ff39a58c3..48c8d4023d 100644 --- a/test/Rewriter/rewrite-modern-block-consts.mm +++ b/test/Rewriter/rewrite-modern-block-consts.mm @@ -2,6 +2,9 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -U__declspec -D"__declspec(X)=" %t-modern-rw.cpp // rdar:// 8243071 +// rdar://11375908 +typedef unsigned long size_t; + void x(int y) {} void f() { const int bar = 3; diff --git a/test/Rewriter/rewrite-modern-block.mm b/test/Rewriter/rewrite-modern-block.mm index cc9710efe9..23029654c9 100644 --- a/test/Rewriter/rewrite-modern-block.mm +++ b/test/Rewriter/rewrite-modern-block.mm @@ -2,6 +2,7 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw.cpp // rdar://11230308 +typedef unsigned long size_t; typedef struct { char byte0; char byte1; diff --git a/test/Rewriter/rewrite-modern-extern-c-func-decl.mm b/test/Rewriter/rewrite-modern-extern-c-func-decl.mm index 16d236a270..c3bfec9e22 100644 --- a/test/Rewriter/rewrite-modern-extern-c-func-decl.mm +++ b/test/Rewriter/rewrite-modern-extern-c-func-decl.mm @@ -2,6 +2,7 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -Wno-attributes -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw.cpp // rdar://11131490 +typedef unsigned long size_t; extern "C" __declspec(dllexport) void BreakTheRewriter(void) { __block int aBlockVariable = 0; void (^aBlock)(void) = ^ { diff --git a/test/Rewriter/rewrite-modern-typeof.mm b/test/Rewriter/rewrite-modern-typeof.mm index 4650ab7b7f..a493c11849 100644 --- a/test/Rewriter/rewrite-modern-typeof.mm +++ b/test/Rewriter/rewrite-modern-typeof.mm @@ -2,6 +2,7 @@ // RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -Wno-attributes -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp +typedef unsigned long size_t; extern "C" { extern "C" void *_Block_copy(const void *aBlock); extern "C" void _Block_release(const void *aBlock); diff --git a/test/Rewriter/rewrite-nested-blocks-1.mm b/test/Rewriter/rewrite-nested-blocks-1.mm index 25b17cfce1..cfd6fadffc 100644 --- a/test/Rewriter/rewrite-nested-blocks-1.mm +++ b/test/Rewriter/rewrite-nested-blocks-1.mm @@ -4,6 +4,7 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp // radar 7696893 +typedef unsigned long size_t; void *sel_registerName(const char *); void f(void (^block)(void)); diff --git a/test/Rewriter/rewrite-nested-blocks-2.mm b/test/Rewriter/rewrite-nested-blocks-2.mm index d1513f3a5f..350e62af14 100644 --- a/test/Rewriter/rewrite-nested-blocks-2.mm +++ b/test/Rewriter/rewrite-nested-blocks-2.mm @@ -6,6 +6,7 @@ // grep "static void __FUNC_block_copy_" %t-modern-rw.cpp | count 2 // rdar://8499592 +typedef unsigned long size_t; void Outer(void (^bk)()); void Inner(void (^bk)()); void INNER_FUNC(id d); diff --git a/test/Rewriter/rewrite-nested-blocks.mm b/test/Rewriter/rewrite-nested-blocks.mm index d492afa18d..89377be748 100644 --- a/test/Rewriter/rewrite-nested-blocks.mm +++ b/test/Rewriter/rewrite-nested-blocks.mm @@ -5,6 +5,7 @@ // radar 7682149 +typedef unsigned long size_t; void f(void (^block)(void)); @interface X { diff --git a/test/Rewriter/rewrite-nested-property-in-blocks.mm b/test/Rewriter/rewrite-nested-property-in-blocks.mm index 7f9361ed07..0c7af231bf 100755 --- a/test/Rewriter/rewrite-nested-property-in-blocks.mm +++ b/test/Rewriter/rewrite-nested-property-in-blocks.mm @@ -4,6 +4,7 @@ // RUN: %clang_cc1 -fsyntax-only -fms-extensions -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp // radar 8608293 +typedef unsigned long size_t; void *sel_registerName(const char *); extern "C" void nowarn(id); diff --git a/test/Rewriter/rewrite-rewritten-initializer.mm b/test/Rewriter/rewrite-rewritten-initializer.mm index b73d3e952e..9a86fe5331 100644 --- a/test/Rewriter/rewrite-rewritten-initializer.mm +++ b/test/Rewriter/rewrite-rewritten-initializer.mm @@ -4,6 +4,7 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw-modern.cpp // radar 7669784 +typedef unsigned long size_t; typedef void * id; void *sel_registerName(const char *); diff --git a/test/Rewriter/rewrite-unique-block-api.mm b/test/Rewriter/rewrite-unique-block-api.mm index 1dcc1b67fe..7d69acecfd 100644 --- a/test/Rewriter/rewrite-unique-block-api.mm +++ b/test/Rewriter/rewrite-unique-block-api.mm @@ -4,6 +4,7 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp // radar 7630551 +typedef unsigned long size_t; void f(void (^b)(char c)); @interface a |