diff options
author | Alp Toker <alp@nuanti.com> | 2013-12-05 16:25:25 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-12-05 16:25:25 +0000 |
commit | 0fb788878818bb12b803e614a242fa6efe845260 (patch) | |
tree | b37519d7c3d8ed358532ace4a9a67c6a949a9bb1 /test | |
parent | 8e674ff884113429b53d23b18409caf67aaec1b7 (diff) | |
download | clang-0fb788878818bb12b803e614a242fa6efe845260.tar.gz |
Fix a tranche of comment, test and doc typos
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
23 files changed, 26 insertions, 26 deletions
diff --git a/test/ARCMT/objcmt-arc-cf-annotations.m b/test/ARCMT/objcmt-arc-cf-annotations.m index 9772825b29..1e063f6e73 100644 --- a/test/ARCMT/objcmt-arc-cf-annotations.m +++ b/test/ARCMT/objcmt-arc-cf-annotations.m @@ -360,7 +360,7 @@ CFAbsoluteTime f2() { NSDate* global_x; -// Test to see if we supresss an error when we store the pointer +// Test to see if we suppress an error when we store the pointer // to a global. CFAbsoluteTime f3() { diff --git a/test/ARCMT/objcmt-arc-cf-annotations.m.result b/test/ARCMT/objcmt-arc-cf-annotations.m.result index 7e0a9042f5..75dda6ca40 100644 --- a/test/ARCMT/objcmt-arc-cf-annotations.m.result +++ b/test/ARCMT/objcmt-arc-cf-annotations.m.result @@ -390,7 +390,7 @@ CFAbsoluteTime f2() { NSDate* global_x; -// Test to see if we supresss an error when we store the pointer +// Test to see if we suppress an error when we store the pointer // to a global. CFAbsoluteTime f3() { diff --git a/test/Analysis/Inputs/system-header-simulator-cxx.h b/test/Analysis/Inputs/system-header-simulator-cxx.h index 9bb8ec4892..82b50782cb 100644 --- a/test/Analysis/Inputs/system-header-simulator-cxx.h +++ b/test/Analysis/Inputs/system-header-simulator-cxx.h @@ -144,7 +144,7 @@ namespace std { public: void pop_front() { // Fake use-after-free. - // No warning is expected as we are suppressing warning comming + // No warning is expected as we are suppressing warning coming // out of std::list. int z = 0; z = 5/z; @@ -162,7 +162,7 @@ namespace std { public: void push_back(int c) { // Fake error trigger. - // No warning is expected as we are suppressing warning comming + // No warning is expected as we are suppressing warning coming // out of std::basic_string. int z = 0; z = 5/z; diff --git a/test/Analysis/dynamic-cast.cpp b/test/Analysis/dynamic-cast.cpp index 6bb571de47..b48ee5b8ef 100644 --- a/test/Analysis/dynamic-cast.cpp +++ b/test/Analysis/dynamic-cast.cpp @@ -169,7 +169,7 @@ int testCastToVoidStar() { return *res; // no warning } -int testReferenceSuccesfulCast() { +int testReferenceSuccessfulCast() { B rb; B &b = dynamic_cast<B&>(rb); int *x = 0; diff --git a/test/Analysis/objc-arc.m b/test/Analysis/objc-arc.m index ba590d614e..92432b1ea8 100644 --- a/test/Analysis/objc-arc.m +++ b/test/Analysis/objc-arc.m @@ -138,7 +138,7 @@ NSString *CreateNSString(); void from_cf() { id obj1 = (__bridge_transfer id)CFCreateSomething(); // expected-warning{{never read}} id obj2 = (__bridge_transfer NSString*)CFCreateString(); - [obj2 self]; // Add a use, to show we can use the object after it has been transfered. + [obj2 self]; // Add a use, to show we can use the object after it has been transferred. id obj3 = (__bridge id)CFGetSomething(); [obj3 self]; // Add a use, to show we can use the object after it has been bridged. id obj4 = (__bridge NSString*)CFGetString(); // expected-warning{{never read}} diff --git a/test/Analysis/retain-release.m b/test/Analysis/retain-release.m index aafd94e97b..57d3203be1 100644 --- a/test/Analysis/retain-release.m +++ b/test/Analysis/retain-release.m @@ -348,7 +348,7 @@ CFAbsoluteTime f2() { NSDate* global_x; -// Test to see if we supresss an error when we store the pointer +// Test to see if we suppress an error when we store the pointer // to a global. CFAbsoluteTime f3() { diff --git a/test/CodeGen/xcore-abi.c b/test/CodeGen/xcore-abi.c index 10881de7ce..76a0fd8280 100644 --- a/test/CodeGen/xcore-abi.c +++ b/test/CodeGen/xcore-abi.c @@ -66,7 +66,7 @@ void testva (int n, ...) { // CHECK:[[V2:%[a-z0-9]+]] = bitcast i64* [[V]] to i8* // CHECK: call void @f(i8* [[V2]]) - struct x v5 = va_arg (ap, struct x); // typical agregate type + struct x v5 = va_arg (ap, struct x); // typical aggregate type f(&v5); // CHECK: [[I:%[a-z0-9]+]] = load i8** [[AP]] // CHECK: [[I2:%[a-z0-9]+]] = bitcast i8* [[I]] to %struct.x** @@ -79,7 +79,7 @@ void testva (int n, ...) { // CHECK: [[V2:%[a-z0-9]+]] = bitcast %struct.x* [[V]] to i8* // CHECK: call void @f(i8* [[V2]]) - int* v6 = va_arg (ap, int[4]); // an unusual agregate type + int* v6 = va_arg (ap, int[4]); // an unusual aggregate type f(v6); // CHECK: [[I:%[a-z0-9]+]] = load i8** [[AP]] // CHECK: [[I2:%[a-z0-9]+]] = bitcast i8* [[I]] to [4 x i32]** diff --git a/test/CodeGenCXX/vtable-key-function-arm.cpp b/test/CodeGenCXX/vtable-key-function-arm.cpp index 08efe8a141..6f10bc3cdd 100644 --- a/test/CodeGenCXX/vtable-key-function-arm.cpp +++ b/test/CodeGenCXX/vtable-key-function-arm.cpp @@ -4,7 +4,7 @@ // The 'a' variants ask for the v-table first. // The 'b' variants ask for the v-table second. // The 'c' variants ask for the v-table third. -// We do a separate CHECK-LATE pass because the RTTI defintion gets +// We do a separate CHECK-LATE pass because the RTTI definition gets // changed after the fact, which causes reordering of the globals. // These are not separated into namespaces because the way that Sema diff --git a/test/CodeGenCXX/vtable-key-function-ios.cpp b/test/CodeGenCXX/vtable-key-function-ios.cpp index bcd3e889d2..c312bccd5a 100644 --- a/test/CodeGenCXX/vtable-key-function-ios.cpp +++ b/test/CodeGenCXX/vtable-key-function-ios.cpp @@ -4,7 +4,7 @@ // The 'a' variants ask for the v-table first. // The 'b' variants ask for the v-table second. // The 'c' variants ask for the v-table third. -// We do a separate CHECK-LATE pass because the RTTI defintion gets +// We do a separate CHECK-LATE pass because the RTTI definition gets // changed after the fact, which causes reordering of the globals. // These are not separated into namespaces because the way that Sema diff --git a/test/CodeGenObjC/arc.m b/test/CodeGenObjC/arc.m index 00cdb6fcc5..f98aa32d12 100644 --- a/test/CodeGenObjC/arc.m +++ b/test/CodeGenObjC/arc.m @@ -180,7 +180,7 @@ id test4() { // CHECK-NEXT: [[ALLOC:%.*]] = bitcast // CHECK-NEXT: [[INIT:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*, i32)*)(i8* [[ALLOC]], - // Initialization of return value, occuring within full-expression. + // Initialization of return value, occurring within full-expression. // Retain/release elided. // CHECK-NEXT: bitcast // CHECK-NEXT: [[INIT:%.*]] = bitcast diff --git a/test/CodeGenObjC/blocks.m b/test/CodeGenObjC/blocks.m index 5245679dd4..6ae3e9fda0 100644 --- a/test/CodeGenObjC/blocks.m +++ b/test/CodeGenObjC/blocks.m @@ -65,7 +65,7 @@ void test2(Test2 *x) { // CHECK-NEXT: [[T3:%.*]] = getelementptr inbounds [[WEAK_T]]* [[WEAKX]], i32 0, i32 3 // CHECK-NEXT: store i32 28, i32* [[T3]] - // Copy and dipose helpers. + // Copy and dispose helpers. // CHECK-NEXT: [[T4:%.*]] = getelementptr inbounds [[WEAK_T]]* [[WEAKX]], i32 0, i32 4 // CHECK-NEXT: store i8* bitcast (void (i8*, i8*)* @__Block_byref_object_copy_{{.*}} to i8*), i8** [[T4]] // CHECK-NEXT: [[T5:%.*]] = getelementptr inbounds [[WEAK_T]]* [[WEAKX]], i32 0, i32 5 diff --git a/test/Driver/pic.c b/test/Driver/pic.c index 30e1005c97..988a20abb3 100644 --- a/test/Driver/pic.c +++ b/test/Driver/pic.c @@ -138,7 +138,7 @@ // RUN: | FileCheck %s --check-prefix=CHECK-NO-PIE // // Darwin is a beautiful and unique snowflake when it comes to these flags. -// When targetting a 32-bit darwin system, the -fno-* flag variants work and +// When targeting a 32-bit darwin system, the -fno-* flag variants work and // disable PIC, but any other flag enables PIC (*not* PIE) even if the flag // specifies PIE. On 64-bit targets, there is simply nothing you can do, there // is no PIE, there is only PIC when it comes to compilation. diff --git a/test/Index/complete-recovery.m b/test/Index/complete-recovery.m index 19de0fbfc4..ec5bf8af6a 100644 --- a/test/Index/complete-recovery.m +++ b/test/Index/complete-recovery.m @@ -23,7 +23,7 @@ // CHECK-CC1: VarDecl:{ResultType A *}{TypedText a} // CHECK-CC1: NotImplemented:{ResultType size_t}{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} -// Test case for fix comitted in r145441. +// Test case for fix committed in r145441. // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:9:20 %s -fms-compatibility | FileCheck -check-prefix=CHECK-CC1 %s // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:10:24 %s | FileCheck -check-prefix=CHECK-CC2 %s diff --git a/test/Parser/warn-semicolon-before-method-body.m b/test/Parser/warn-semicolon-before-method-body.m index be408ebd31..abdf9f2b02 100644 --- a/test/Parser/warn-semicolon-before-method-body.m +++ b/test/Parser/warn-semicolon-before-method-body.m @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -Wsemicolon-before-method-body -verify %s // RUN: %clang_cc1 -fsyntax-only -Wsemicolon-before-method-body -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s -// Allow optional semicolon in objc method definiton after method prototype, +// Allow optional semicolon in objc method definition after method prototype, // warn about it and suggest a fixit. @interface NSObject diff --git a/test/SemaCXX/compare.cpp b/test/SemaCXX/compare.cpp index 8214f7899e..ef0a524f92 100644 --- a/test/SemaCXX/compare.cpp +++ b/test/SemaCXX/compare.cpp @@ -225,7 +225,7 @@ void test3() { } // Test comparison of short to unsigned. If tautological compare does not -// trigger, then the signed comparision warning will. +// trigger, then the signed comparison warning will. void test4(short s) { // A is max short plus 1. All zero and positive shorts are smaller than it. // All negative shorts are cast towards the max unsigned range. Relation diff --git a/test/SemaCXX/constexpr-value-init.cpp b/test/SemaCXX/constexpr-value-init.cpp index e5b7db50eb..9ad1129019 100644 --- a/test/SemaCXX/constexpr-value-init.cpp +++ b/test/SemaCXX/constexpr-value-init.cpp @@ -9,7 +9,7 @@ struct B { A a; }; -constexpr A a; // ok, zero initialization preceeds static initialization +constexpr A a; // ok, zero initialization precedes static initialization void f() { constexpr A a; // expected-error {{constant expression}} expected-note {{in call to 'A()'}} } diff --git a/test/SemaCXX/goto.cpp b/test/SemaCXX/goto.cpp index 24bcb7c516..042ec3cd80 100644 --- a/test/SemaCXX/goto.cpp +++ b/test/SemaCXX/goto.cpp @@ -118,7 +118,7 @@ namespace PR10620 { namespace test12 { struct A { A(); A(const A&); ~A(); }; - void test(A a) { // expected-note {{jump enters lifetime of block}} FIXME: wierd location + void test(A a) { // expected-note {{jump enters lifetime of block}} FIXME: weird location goto lbl; // expected-error {{goto into protected scope}} (void) ^{ (void) a; }; lbl: diff --git a/test/SemaCXX/uninitialized.cpp b/test/SemaCXX/uninitialized.cpp index 4991ebee8b..677a141f3e 100644 --- a/test/SemaCXX/uninitialized.cpp +++ b/test/SemaCXX/uninitialized.cpp @@ -117,7 +117,7 @@ void setupA(bool x) { A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initialization}} A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own initialization}} - // FIXME: Make the local uninitialized warning consistant with the global + // FIXME: Make the local uninitialized warning consistent with the global // uninitialized checking. A *a22 = new A(a22->count); // expected-warning {{variable 'a22' is uninitialized when used within its own initialization}} A *a23 = new A(a23->ONE); // expected-warning {{variable 'a23' is uninitialized when used within its own initialization}} diff --git a/test/SemaObjC/arc-jump-block.m b/test/SemaObjC/arc-jump-block.m index 26a1fc839d..9b06c5a780 100644 --- a/test/SemaObjC/arc-jump-block.m +++ b/test/SemaObjC/arc-jump-block.m @@ -84,7 +84,7 @@ extern __attribute__((visibility("default"))) struct dispatch_queue_s _dispatch_ @end // Test 2. rdar://problem/11150919 -int test2(id obj, int state) { // expected-note {{jump enters lifetime of block}} FIXME: wierd location +int test2(id obj, int state) { // expected-note {{jump enters lifetime of block}} FIXME: weird location switch (state) { case 0: (void) ^{ (void) obj; }; diff --git a/test/SemaObjC/arc-property-lifetime.m b/test/SemaObjC/arc-property-lifetime.m index ed72e8c7d8..4874ff3a35 100644 --- a/test/SemaObjC/arc-property-lifetime.m +++ b/test/SemaObjC/arc-property-lifetime.m @@ -154,7 +154,7 @@ @property id prop; @property __strong id strong_prop; @property (strong) id strong_attr_prop; -@property (strong) __strong id realy_strong_attr_prop; +@property (strong) __strong id really_strong_attr_prop; + (id) alloc; - (id) init; - (id) implicit; @@ -165,7 +165,7 @@ void foo(Baz *f) { f.prop = [[Baz alloc] init]; f.strong_prop = [[Baz alloc] init]; f.strong_attr_prop = [[Baz alloc] init]; - f.realy_strong_attr_prop = [[Baz alloc] init]; + f.really_strong_attr_prop = [[Baz alloc] init]; f.implicit = [[Baz alloc] init]; } diff --git a/test/SemaObjC/property-noninherited-availability-attr.m b/test/SemaObjC/property-noninherited-availability-attr.m index 0c2a5d3853..f53a1a61d5 100644 --- a/test/SemaObjC/property-noninherited-availability-attr.m +++ b/test/SemaObjC/property-noninherited-availability-attr.m @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-macosx10.8.0 -fsyntax-only -verify %s -// This test case shows that 'availablity' and 'deprecated' does not inherit +// This test case shows that 'availability' and 'deprecated' do not inherit // when a property is redeclared in a subclass. This is intentional. @interface NSObject @end diff --git a/test/SemaObjC/property-typecheck-1.m b/test/SemaObjC/property-typecheck-1.m index 58d0f215cd..5fb05c8bd3 100644 --- a/test/SemaObjC/property-typecheck-1.m +++ b/test/SemaObjC/property-typecheck-1.m @@ -93,7 +93,7 @@ typedef void (F)(void); return container.pieces; // expected-warning {{type of property 'pieces' does not match type of accessor 'pieces'}} } -- (id)firstPeice +- (id)firstPiece { return container.first; } diff --git a/test/SemaTemplate/ms-lookup-template-base-classes.cpp b/test/SemaTemplate/ms-lookup-template-base-classes.cpp index 72ce056063..5a56cb2ea3 100644 --- a/test/SemaTemplate/ms-lookup-template-base-classes.cpp +++ b/test/SemaTemplate/ms-lookup-template-base-classes.cpp @@ -176,7 +176,7 @@ class B {}; template <class T> class Base { public: - bool base_fun(void* p) { return false; } // expected-note {{must qualify identifier to find this declaration in dependent base clas}} + bool base_fun(void* p) { return false; } // expected-note {{must qualify identifier to find this declaration in dependent base class}} operator T*() const { return 0; } }; |