[cfe-commits] r153602 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/objc-container-subscripting-2.m test/SemaObjCXX/objc-container-subscripting.mm
Fariborz Jahanian
fjahanian at apple.com
Wed Mar 28 14:13:53 PDT 2012
Author: fjahanian
Date: Wed Mar 28 16:13:53 2012
New Revision: 153602
URL: http://llvm.org/viewvc/llvm-project?rev=153602&view=rev
Log:
Fix typo in my last patch.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/objc-container-subscripting-2.m
cfe/trunk/test/SemaObjCXX/objc-container-subscripting.mm
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=153602&r1=153601&r2=153602&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Mar 28 16:13:53 2012
@@ -3779,7 +3779,7 @@
"indexing expression is invalid because subscript type %0 has "
"multiple type conversion functions">;
def err_objc_subscript_type_conversion : Error<
- "indexing expression is invalid because subscript type %0 is not an intergal"
+ "indexing expression is invalid because subscript type %0 is not an integral"
" or objective-C pointer type">;
def err_objc_subscript_pointer : Error<
"indexing expression is invalid because subscript type %0 is not an"
Modified: cfe/trunk/test/SemaObjC/objc-container-subscripting-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-container-subscripting-2.m?rev=153602&r1=153601&r2=153602&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-container-subscripting-2.m (original)
+++ cfe/trunk/test/SemaObjC/objc-container-subscripting-2.m Wed Mar 28 16:13:53 2012
@@ -16,8 +16,8 @@
id func() {
NSMutableArray *array;
float f;
- array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an intergal or objective-C pointer type}}
- return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal 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() {
Modified: cfe/trunk/test/SemaObjCXX/objc-container-subscripting.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/objc-container-subscripting.mm?rev=153602&r1=153601&r2=153602&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/objc-container-subscripting.mm (original)
+++ cfe/trunk/test/SemaObjCXX/objc-container-subscripting.mm Wed Mar 28 16:13:53 2012
@@ -32,8 +32,8 @@
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 intergal or objective-C pointer type}}
- obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal 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);
More information about the cfe-commits
mailing list