diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-07-19 18:10:18 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-07-19 18:10:18 +0000 |
commit | 96c49686b9c9fd081e67e36a73bd9cf3ad205801 (patch) | |
tree | c62f383b14c2bf2733d1d3f9d6d292939fcbff2b /clang/test | |
parent | 58bbe4206fd18691a264a1a0e4e66ac2ba365c4e (diff) | |
download | bcm5719-llvm-96c49686b9c9fd081e67e36a73bd9cf3ad205801.tar.gz bcm5719-llvm-96c49686b9c9fd081e67e36a73bd9cf3ad205801.zip |
Capitalize "Objective-C" and "C++" in user-facing contexts.
No functionality change.
llvm-svn: 160516
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaObjC/arc-no-runtime.m | 2 | ||||
-rw-r--r-- | clang/test/SemaObjC/arc.m | 2 | ||||
-rw-r--r-- | clang/test/SemaObjC/assign-rvalue-message.m | 2 | ||||
-rw-r--r-- | clang/test/SemaObjC/format-strings-objc.m | 12 | ||||
-rw-r--r-- | clang/test/SemaObjC/objc-container-subscripting-2.m | 4 | ||||
-rw-r--r-- | clang/test/SemaObjC/objc-container-subscripting-3.m | 2 | ||||
-rw-r--r-- | clang/test/SemaObjC/objc-container-subscripting.m | 8 | ||||
-rw-r--r-- | clang/test/SemaObjC/objc-dictionary-literal.m | 2 | ||||
-rw-r--r-- | clang/test/SemaObjCXX/objc-container-subscripting.mm | 4 |
9 files changed, 19 insertions, 19 deletions
diff --git a/clang/test/SemaObjC/arc-no-runtime.m b/clang/test/SemaObjC/arc-no-runtime.m index b75064f7765..c5820d4321d 100644 --- a/clang/test/SemaObjC/arc-no-runtime.m +++ b/clang/test/SemaObjC/arc-no-runtime.m @@ -3,7 +3,7 @@ // rdar://problem/9150784 void test(void) { __weak id x; // expected-error {{the current deployment target does not support automated __weak references}} - __weak void *v; // expected-warning {{'__weak' only applies to objective-c object or block pointer types}} + __weak void *v; // expected-warning {{'__weak' only applies to Objective-C object or block pointer types}} } @interface A diff --git a/clang/test/SemaObjC/arc.m b/clang/test/SemaObjC/arc.m index cdc02d9821a..bd30715a6b3 100644 --- a/clang/test/SemaObjC/arc.m +++ b/clang/test/SemaObjC/arc.m @@ -641,7 +641,7 @@ void test35(void) { test36_helper(&y); ^{ test36_helper(&y); }(); - __strong int non_objc_type; // expected-warning {{'__strong' only applies to objective-c object or block pointer types}} + __strong int non_objc_type; // expected-warning {{'__strong' only applies to Objective-C object or block pointer types}} } void test36(int first, ...) { diff --git a/clang/test/SemaObjC/assign-rvalue-message.m b/clang/test/SemaObjC/assign-rvalue-message.m index 1105d5e743a..a90cc50cdd3 100644 --- a/clang/test/SemaObjC/assign-rvalue-message.m +++ b/clang/test/SemaObjC/assign-rvalue-message.m @@ -19,6 +19,6 @@ struct Bar { - (void)baz { bar.x = 0; - [self bar].x = 10; // expected-error {{assigning to 'readonly' return result of an objective-c message not allowed}} + [self bar].x = 10; // expected-error {{assigning to 'readonly' return result of an Objective-C message not allowed}} } @end diff --git a/clang/test/SemaObjC/format-strings-objc.m b/clang/test/SemaObjC/format-strings-objc.m index c6f26e53b8e..a53a304bd1f 100644 --- a/clang/test/SemaObjC/format-strings-objc.m +++ b/clang/test/SemaObjC/format-strings-objc.m @@ -218,12 +218,12 @@ void test_nonBuiltinCFStrings() { @end void testInvalidFormatArgument(NSDictionary *dict) { - NSLog(@"no specifiers", dict[CFSTR("abc")]); // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or objective-C pointer type}} - NSLog(@"%@", dict[CFSTR("abc")]); // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or objective-C pointer type}} - NSLog(@"%@ %@", dict[CFSTR("abc")]); // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or objective-C pointer type}} + NSLog(@"no specifiers", dict[CFSTR("abc")]); // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} + NSLog(@"%@", dict[CFSTR("abc")]); // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} + NSLog(@"%@ %@", dict[CFSTR("abc")]); // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} - [Foo fooWithFormat:@"no specifiers", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or objective-C pointer type}} - [Foo fooWithFormat:@"%@", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or objective-C pointer type}} - [Foo fooWithFormat:@"%@ %@", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or objective-C pointer type}} expected-warning{{more '%' conversions than data arguments}} + [Foo fooWithFormat:@"no specifiers", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} + [Foo fooWithFormat:@"%@", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} + [Foo fooWithFormat:@"%@ %@", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} expected-warning{{more '%' conversions than data arguments}} } diff --git a/clang/test/SemaObjC/objc-container-subscripting-2.m b/clang/test/SemaObjC/objc-container-subscripting-2.m index 3c0081b72a7..62320fcebb7 100644 --- a/clang/test/SemaObjC/objc-container-subscripting-2.m +++ b/clang/test/SemaObjC/objc-container-subscripting-2.m @@ -16,8 +16,8 @@ typedef unsigned int size_t; id func() { NSMutableArray *array; float f; - array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an integral or objective-C pointer type}} - return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}} + array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an integral or Objective-C pointer type}} + return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or Objective-C pointer type}} } void test_unused() { diff --git a/clang/test/SemaObjC/objc-container-subscripting-3.m b/clang/test/SemaObjC/objc-container-subscripting-3.m index 5fd1a10915f..2f716d6f791 100644 --- a/clang/test/SemaObjC/objc-container-subscripting-3.m +++ b/clang/test/SemaObjC/objc-container-subscripting-3.m @@ -14,7 +14,7 @@ int main() { Test *array; int i = array[10]; // expected-error {{method for accessing array element must have Objective-C object return type instead of 'int'}} - array[2] = i; // expected-error {{cannot assign to this array because assigning method's 2nd parameter of type 'int' is not an objective-C pointer type}} + array[2] = i; // expected-error {{cannot assign to this array because assigning method's 2nd parameter of type 'int' is not an Objective-C pointer type}} NSMutableDictionary *dict; id key, val; diff --git a/clang/test/SemaObjC/objc-container-subscripting.m b/clang/test/SemaObjC/objc-container-subscripting.m index 4125bc634a7..3bbd7d404bb 100644 --- a/clang/test/SemaObjC/objc-container-subscripting.m +++ b/clang/test/SemaObjC/objc-container-subscripting.m @@ -14,15 +14,15 @@ int main() { NSMutableArray<P> * array; id oldObject = array[10]; // expected-error {{method index parameter type 'double' is not integral type}} array[3] = 0; // expected-error {{method index parameter type 'void *' is not integral type}} \ - // expected-error {{cannot assign to this array because assigning method's 2nd parameter of type 'id *' is not an objective-C pointer type}} + // expected-error {{cannot assign to this array because assigning method's 2nd parameter of type 'id *' is not an Objective-C pointer type}} I* iarray; iarray[3] = 0; // expected-error {{expected method to write array element not found on object of type 'I *'}} I* p = iarray[4]; // expected-error {{expected method to read array element not found on object of type 'I *'}} - oldObject = array[10]++; // expected-error {{illegal operation on objective-c container subscripting}} - oldObject = array[10]--; // expected-error {{illegal operation on objective-c container subscripting}} - oldObject = --array[10]; // expected-error {{illegal operation on objective-c container subscripting}} + oldObject = array[10]++; // expected-error {{illegal operation on Objective-C container subscripting}} + oldObject = array[10]--; // expected-error {{illegal operation on Objective-C container subscripting}} + oldObject = --array[10]; // expected-error {{illegal operation on Objective-C container subscripting}} } @interface NSMutableDictionary diff --git a/clang/test/SemaObjC/objc-dictionary-literal.m b/clang/test/SemaObjC/objc-dictionary-literal.m index 2acbc39e388..0b6da4a77ba 100644 --- a/clang/test/SemaObjC/objc-dictionary-literal.m +++ b/clang/test/SemaObjC/objc-dictionary-literal.m @@ -27,7 +27,7 @@ int main() { NSDictionary *dict = @{ @"name":@666 }; dict[@"name"] = @666; - dict["name"] = @666; // expected-error {{indexing expression is invalid because subscript type 'char *' is not an objective-C pointer}} + dict["name"] = @666; // expected-error {{indexing expression is invalid because subscript type 'char *' is not an Objective-C pointer}} return 0; } diff --git a/clang/test/SemaObjCXX/objc-container-subscripting.mm b/clang/test/SemaObjCXX/objc-container-subscripting.mm index c835cbe53c6..537e1520df5 100644 --- a/clang/test/SemaObjCXX/objc-container-subscripting.mm +++ b/clang/test/SemaObjCXX/objc-container-subscripting.mm @@ -32,8 +32,8 @@ template void test_dictionary_subscripts(NSMutableDictionary*, id, int); // expe template<typename T, typename U, typename O> void test_array_subscripts(T base, U index, O obj) { - base[index] = obj; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}} - obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}} + base[index] = obj; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or Objective-C pointer type}} + obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or Objective-C pointer type}} } template void test_array_subscripts(NSMutableArray *, int, id); |