diff options
Diffstat (limited to 'clang/test')
67 files changed, 99 insertions, 99 deletions
diff --git a/clang/test/ASTMerge/namespace/test.cpp b/clang/test/ASTMerge/namespace/test.cpp index f1796c03b07..ab05f6d7275 100644 --- a/clang/test/ASTMerge/namespace/test.cpp +++ b/clang/test/ASTMerge/namespace/test.cpp @@ -7,7 +7,7 @@ static_assert(ContainsInline::z == 10); void testImport() { typedef TestUnresolvedTypenameAndValueDecls::Derived<int> Imported; - Imported a; // Successfull instantiation + Imported a; // Successful instantiation static_assert(sizeof(Imported::foo) == sizeof(int)); static_assert(sizeof(TestUnresolvedTypenameAndValueDecls::Derived<double>::NewUnresolvedUsingType) == sizeof(double)); } diff --git a/clang/test/Analysis/analyzeOneFunction.m b/clang/test/Analysis/analyzeOneFunction.m index a77abe1246b..80f34ad525e 100644 --- a/clang/test/Analysis/analyzeOneFunction.m +++ b/clang/test/Analysis/analyzeOneFunction.m @@ -38,7 +38,7 @@ typedef struct _NSZone NSZone; -(id)myMethod { Test1 *cell = [[[Test1 alloc] init] autorelease]; - NSString *string1 = [[NSString alloc] initWithFormat:@"test %f", 0.0]; // No warning: this function is not analized. + NSString *string1 = [[NSString alloc] initWithFormat:@"test %f", 0.0]; // No warning: this function is not analyzed. cell.text = string1; return cell; diff --git a/clang/test/Analysis/copypaste/macro-complexity.cpp b/clang/test/Analysis/copypaste/macro-complexity.cpp index db90236d0a1..656f91189b4 100644 --- a/clang/test/Analysis/copypaste/macro-complexity.cpp +++ b/clang/test/Analysis/copypaste/macro-complexity.cpp @@ -20,7 +20,7 @@ int manualMacroClone(int a, int b) { // expected-note{{Similar code here}} } // Now we actually use the macro to generate the same AST as above. They -// shouldn't be reported because the macros only slighly increase the complexity +// shouldn't be reported because the macros only slightly increase the complexity // value and the resulting code will never pass the MinimumCloneComplexity // constraint. diff --git a/clang/test/Analysis/dead-stores.c b/clang/test/Analysis/dead-stores.c index 05bc64af7a3..84217a286a5 100644 --- a/clang/test/Analysis/dead-stores.c +++ b/clang/test/Analysis/dead-stores.c @@ -525,7 +525,7 @@ void rdar8405222() { rdar8405222_aux(i); } -// Look through chains of assignements, e.g.: int x = y = 0, when employing +// Look through chains of assignments, e.g.: int x = y = 0, when employing // silencing heuristics. int radar11185138_foo() { int x, y; diff --git a/clang/test/Analysis/dynamic_type_check.m b/clang/test/Analysis/dynamic_type_check.m index 3dc9465cfed..6753892e1d5 100644 --- a/clang/test/Analysis/dynamic_type_check.m +++ b/clang/test/Analysis/dynamic_type_check.m @@ -36,7 +36,7 @@ void testTypeCheck(NSString* str) { void testForwardDeclarations(NSString* str) { id obj = str; - // Do not warn, since no information is available wether MyType is a sub or + // Do not warn, since no information is available whether MyType is a sub or // super class of any other type. MyType *num = obj; // no warning (void)num; diff --git a/clang/test/Analysis/localization.m b/clang/test/Analysis/localization.m index 3a6a0d70737..a9fd2445eb1 100644 --- a/clang/test/Analysis/localization.m +++ b/clang/test/Analysis/localization.m @@ -118,14 +118,14 @@ NSString *KHLocalizedString(NSString* key, NSString* comment) { - (NSString *)test1:(int)plural { if (plural) { - return MCLocalizedString(@"TYPE_PLURAL"); // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + return MCLocalizedString(@"TYPE_PLURAL"); // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } return MCLocalizedString(@"TYPE"); } - (NSString *)test2:(int)numOfReminders { if (numOfReminders > 0) { - return [NSString stringWithFormat:@"%@, %@", @"Test", (numOfReminders != 1) ? [NSString stringWithFormat:NSLocalizedString(@"%@ Reminders", @"Plural count of reminders"), numOfReminders] : [NSString stringWithFormat:NSLocalizedString(@"1 reminder", @"One reminder")]]; // expected-warning 2 {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note 2 {{Plural}} + return [NSString stringWithFormat:@"%@, %@", @"Test", (numOfReminders != 1) ? [NSString stringWithFormat:NSLocalizedString(@"%@ Reminders", @"Plural count of reminders"), numOfReminders] : [NSString stringWithFormat:NSLocalizedString(@"1 reminder", @"One reminder")]]; // expected-warning 2 {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note 2 {{Plural}} } return nil; } @@ -134,18 +134,18 @@ NSString *KHLocalizedString(NSString* key, NSString* comment) { NSString *count; if (self.unreadArticlesCount > 1) { - count = [count stringByAppendingFormat:@"%@", KHLocalizedString(@"New Stories", @"Plural count for new stories")]; // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + count = [count stringByAppendingFormat:@"%@", KHLocalizedString(@"New Stories", @"Plural count for new stories")]; // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } else { - count = [count stringByAppendingFormat:@"%@", KHLocalizedString(@"New Story", @"One new story")]; // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + count = [count stringByAppendingFormat:@"%@", KHLocalizedString(@"New Story", @"One new story")]; // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } } - (NSString *)test4:(int)count { if ( count == 1 ) { - return [NSString stringWithFormat:KHLocalizedString(@"value.singular",nil), count]; // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + return [NSString stringWithFormat:KHLocalizedString(@"value.singular",nil), count]; // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } else { - return [NSString stringWithFormat:KHLocalizedString(@"value.plural",nil), count]; // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + return [NSString stringWithFormat:KHLocalizedString(@"value.plural",nil), count]; // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } } @@ -153,9 +153,9 @@ NSString *KHLocalizedString(NSString* key, NSString* comment) { int test = count == 1; if (test) { - return [NSString stringWithFormat:KHLocalizedString(@"value.singular",nil), count]; // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + return [NSString stringWithFormat:KHLocalizedString(@"value.singular",nil), count]; // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } else { - return [NSString stringWithFormat:KHLocalizedString(@"value.plural",nil), count]; // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + return [NSString stringWithFormat:KHLocalizedString(@"value.plural",nil), count]; // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } } @@ -169,7 +169,7 @@ NSString *KHLocalizedString(NSString* key, NSString* comment) { if (someOtherVariable) return KHLocalizedString(@"OK",nil); // no-warning } else { - return KHLocalizedString(@"value.plural",nil); // expected-warning {{Plural cases are not supported accross all languages. Use a .stringsdict file}} expected-note {{Plural}} + return KHLocalizedString(@"value.plural",nil); // expected-warning {{Plural cases are not supported across all languages. Use a .stringsdict file}} expected-note {{Plural}} } return nil; } diff --git a/clang/test/Analysis/misc-ps-region-store.m b/clang/test/Analysis/misc-ps-region-store.m index 9bd20732635..1ef10056312 100644 --- a/clang/test/Analysis/misc-ps-region-store.m +++ b/clang/test/Analysis/misc-ps-region-store.m @@ -1109,7 +1109,7 @@ void pr8015_C() { } // Tests that we correctly handle that 'number' is perfectly constrained -// after 'if (nunber == 0)', allowing us to resolve that +// after 'if (number == 0)', allowing us to resolve that // numbers[number] == numbers[0]. void pr8015_D_FIXME() { int number = pr8015_A(); diff --git a/clang/test/Analysis/new.cpp b/clang/test/Analysis/new.cpp index 0cd2d085f72..4ae93c612f3 100644 --- a/clang/test/Analysis/new.cpp +++ b/clang/test/Analysis/new.cpp @@ -138,7 +138,7 @@ void testNewDeleteNoWarn() { // unix.Malloc does not know about operators new/delete. void testDeleteMallocked() { int *x = (int *)malloc(sizeof(int)); - delete x; // FIXME: Shoud detect pointer escape and keep silent after 'delete' is modeled properly. + delete x; // FIXME: Should detect pointer escape and keep silent after 'delete' is modeled properly. } // expected-warning{{Potential leak of memory pointed to by 'x'}} void testDeleteOpAfterFree() { diff --git a/clang/test/Analysis/nullability.mm b/clang/test/Analysis/nullability.mm index ddfede53b59..2278efff3e9 100644 --- a/clang/test/Analysis/nullability.mm +++ b/clang/test/Analysis/nullability.mm @@ -418,7 +418,7 @@ Dummy *_Nonnull testDefensiveInlineChecks(Dummy * p) { @end @implementation SubClassWithInitializers -// Note: Because this is overridding +// Note: Because this is overriding // -[ClassWithInitializers initWithNonnullReturnAndSelfCheckingIdiom], // the return type of this method becomes implicitly id _Nonnull. - (id)initWithNonnullReturnAndSelfCheckingIdiom { diff --git a/clang/test/Analysis/objc-properties.m b/clang/test/Analysis/objc-properties.m index 88a19a13c51..7f2ef52a914 100644 --- a/clang/test/Analysis/objc-properties.m +++ b/clang/test/Analysis/objc-properties.m @@ -17,7 +17,7 @@ typedef signed char BOOL; id _nonSynth; } - @property (assign, nonatomic) MyClass* A; // explicitely synthesized, not implemented, non-default ivar name + @property (assign, nonatomic) MyClass* A; // explicitly synthesized, not implemented, non-default ivar name @property (assign) MyClass* X; // automatically synthesized, not implemented diff --git a/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m b/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m index 1603a57fea4..782fcecd43f 100644 --- a/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m +++ b/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m @@ -26,7 +26,7 @@ typedef signed char BOOL; MyClass* _NotA __attribute__((annotate("objc_allow_direct_instance_variable_assignment"))); } - @property (assign, nonatomic) MyClass* A; // explicitely synthesized, not implemented, non-default ivar name + @property (assign, nonatomic) MyClass* A; // explicitly synthesized, not implemented, non-default ivar name @property (assign) MyClass* X; // automatically synthesized, not implemented diff --git a/clang/test/Analysis/retain-release-path-notes.m b/clang/test/Analysis/retain-release-path-notes.m index f44d40fa495..052d42d2e63 100644 --- a/clang/test/Analysis/retain-release-path-notes.m +++ b/clang/test/Analysis/retain-release-path-notes.m @@ -222,7 +222,7 @@ static int Cond; } +(void)test { - // initX is inlined since we explicitely mark it as interesting + // initX is inlined since we explicitly mark it as interesting id x = [[MyObj alloc] initX]; // expected-warning {{Potential leak of an object}} // expected-note@-1 {{Method returns an instance of MyObj with a +1 retain count}} // expected-note@-2 {{Calling 'initX'}} diff --git a/clang/test/Analysis/string.c b/clang/test/Analysis/string.c index e4a7482f72c..57cc4e3cdb8 100644 --- a/clang/test/Analysis/string.c +++ b/clang/test/Analysis/string.c @@ -1163,9 +1163,9 @@ void strsep_changes_input_string() { // FIXMEs //===----------------------------------------------------------------------=== -// The analyzer_eval call below should evaluate to true. We are being too -// aggressive in marking the (length of) src symbol dead. The length of dst -// depends on src. This could be explicitely specified in the checker or the +// The analyzer_eval call below should evaluate to true. We are being too +// aggressive in marking the (length of) src symbol dead. The length of dst +// depends on src. This could be explicitly specified in the checker or the // logic for handling MetadataSymbol in SymbolManager needs to change. void strcat_symbolic_src_length(char *src) { char dst[8] = "1234"; diff --git a/clang/test/CXX/special/class.init/class.inhctor.init/p1.cpp b/clang/test/CXX/special/class.init/class.inhctor.init/p1.cpp index 1f4362740b0..87fb195604d 100644 --- a/clang/test/CXX/special/class.init/class.inhctor.init/p1.cpp +++ b/clang/test/CXX/special/class.init/class.inhctor.init/p1.cpp @@ -114,7 +114,7 @@ namespace constexpr_init_order { constexpr B b(1); constexpr B c(1); static_assert(b.a == 1, "p should be initialized before B() is executed"); - static_assert(c.a == 7, "b not initialzed properly"); + static_assert(c.a == 7, "b not initialized properly"); } namespace default_args { diff --git a/clang/test/CodeGen/arm64_vdup.c b/clang/test/CodeGen/arm64_vdup.c index 8419828b38d..67eb8553638 100644 --- a/clang/test/CodeGen/arm64_vdup.c +++ b/clang/test/CodeGen/arm64_vdup.c @@ -30,7 +30,7 @@ float16x8_t test_vdupq_n_f16(float16_t *a1) { // CHECK-LABEL: test_vdupq_n_f16 return vdupq_n_f16(*a1); // match that an element is inserted into parts 0-7. The backend better - // turn that into a single dup intruction + // turn that into a single dup instruction // CHECK: insertelement {{.*, i32 0 *$}} // CHECK: insertelement {{.*, i32 1 *$}} // CHECK: insertelement {{.*, i32 2 *$}} diff --git a/clang/test/CodeGen/debug-info-block-out-return.c b/clang/test/CodeGen/debug-info-block-out-return.c index 428a50c77a0..931ea64d138 100644 --- a/clang/test/CodeGen/debug-info-block-out-return.c +++ b/clang/test/CodeGen/debug-info-block-out-return.c @@ -14,7 +14,7 @@ // CHECK: !DILocalVariable(name: ".block_descriptor", arg: 1,{{.*}}line: 2, // CHECK: !DILocalVariable(name: "param", arg: 2,{{.*}}line: 2, -// Line directive so we don't have to worry about how many lines preceed the +// Line directive so we don't have to worry about how many lines precede the // test code (as the line number is mangled in with the argument number as shown // above) #line 1 diff --git a/clang/test/CodeGen/pr3518.c b/clang/test/CodeGen/pr3518.c index 5ce6a657056..f0c06d9be6d 100644 --- a/clang/test/CodeGen/pr3518.c +++ b/clang/test/CodeGen/pr3518.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // PR 3518 -// Some of the objects were coming out as unintialized (external) before 3518 +// Some of the objects were coming out as uninitialized (external) before 3518 // was fixed. Internal names are different between llvm-gcc and clang so they // are not tested. diff --git a/clang/test/CodeGenCUDA/device-stub.cu b/clang/test/CodeGenCUDA/device-stub.cu index 3376803c502..010fb3efc32 100644 --- a/clang/test/CodeGenCUDA/device-stub.cu +++ b/clang/test/CodeGenCUDA/device-stub.cu @@ -83,7 +83,7 @@ void hostfunc(void) { kernelfunc<<<1, 1>>>(1, 1, 1); } // CHECK-DAG: call{{.*}}cudaRegisterVar(i8** %0, {{.*}}ext_constant_var{{.*}}i32 1, i32 4, i32 1, i32 0 // CHECK: ret void -// Test that we've built contructor.. +// Test that we've built constructor.. // CHECK: define internal void @__cuda_module_ctor // .. that calls __cudaRegisterFatBinary(&__cuda_fatbin_wrapper) // CHECK: call{{.*}}cudaRegisterFatBinary{{.*}}__cuda_fatbin_wrapper diff --git a/clang/test/CodeGenCUDA/propagate-metadata.cu b/clang/test/CodeGenCUDA/propagate-metadata.cu index f8db765099e..1616cb93374 100644 --- a/clang/test/CodeGenCUDA/propagate-metadata.cu +++ b/clang/test/CodeGenCUDA/propagate-metadata.cu @@ -29,7 +29,7 @@ // RUN: -fcuda-is-device -menable-unsafe-fp-math -triple nvptx-unknown-unknown \ // RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=FAST -// Wrap everything in extern "C" so we don't ahve to worry about name mangling +// Wrap everything in extern "C" so we don't have to worry about name mangling // in the IR. extern "C" { #ifdef LIB diff --git a/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp b/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp index f36922413d8..f1d207649a4 100644 --- a/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp +++ b/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s -// Check that we dont emit the complete constructor/destructor for this class. +// Check that we don't emit the complete constructor/destructor for this class. struct A { virtual void f() = 0; A(); diff --git a/clang/test/CodeGenCXX/ctor-dtor-alias.cpp b/clang/test/CodeGenCXX/ctor-dtor-alias.cpp index 6826ee5796c..d72c5b48b3a 100644 --- a/clang/test/CodeGenCXX/ctor-dtor-alias.cpp +++ b/clang/test/CodeGenCXX/ctor-dtor-alias.cpp @@ -11,7 +11,7 @@ // RUN: %clang_cc1 %s -triple i686-pc-windows-gnu -emit-llvm -o - -mconstructor-aliases -O1 -disable-llvm-passes | FileCheck --check-prefix=COFF %s namespace test1 { -// Test that we produce the apropriate comdats when creating aliases to +// Test that we produce the appropriate comdats when creating aliases to // weak_odr constructors and destructors. // CHECK1: @_ZN5test16foobarIvEC1Ev = weak_odr alias void {{.*}} @_ZN5test16foobarIvEC2Ev diff --git a/clang/test/CodeGenCXX/debug-info-class-nolimit.cpp b/clang/test/CodeGenCXX/debug-info-class-nolimit.cpp index 0b3b38dd17b..b184b9e08da 100644 --- a/clang/test/CodeGenCXX/debug-info-class-nolimit.cpp +++ b/clang/test/CodeGenCXX/debug-info-class-nolimit.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin -debug-info-kind=standalone -o - -emit-llvm %s | FileCheck %s // We had a bug in -fstandalone-debug where UnicodeString would not be completed -// when it was required to be complete. This orginally manifested as an +// when it was required to be complete. This originally manifested as an // assertion in CodeView emission on Windows with some dllexport stuff, but it's // more general than that. diff --git a/clang/test/CodeGenCXX/duplicate-mangled-name.cpp b/clang/test/CodeGenCXX/duplicate-mangled-name.cpp index cebba02d143..086255260c6 100644 --- a/clang/test/CodeGenCXX/duplicate-mangled-name.cpp +++ b/clang/test/CodeGenCXX/duplicate-mangled-name.cpp @@ -73,7 +73,7 @@ float foo() { #else -#error Unknwon test +#error Unknown test #endif diff --git a/clang/test/CodeGenOpenCL/amdgpu-nullptr.cl b/clang/test/CodeGenOpenCL/amdgpu-nullptr.cl index 13008c57aa0..688d3a58e90 100644 --- a/clang/test/CodeGenOpenCL/amdgpu-nullptr.cl +++ b/clang/test/CodeGenOpenCL/amdgpu-nullptr.cl @@ -198,7 +198,7 @@ global char *p4; // CHECK: @p5 = common local_unnamed_addr addrspace(1) global i8* null, align 8 generic char *p5; -// Test default initialization of sturcture. +// Test default initialization of structure. // CHECK: @S1 = weak local_unnamed_addr addrspace(1) global %struct.StructTy1 { i8 addrspace(5)* null, i8 addrspace(3)* addrspacecast (i8* null to i8 addrspace(3)*), i8 addrspace(4)* null, i8 addrspace(1)* null, i8* null }, align 8 StructTy1 S1; @@ -367,7 +367,7 @@ void test_cast_null_pointer_to_sizet(void) { (size_t)((generic char*)NULL)); } -// Test comparision between null pointers. +// Test comparison between null pointers. #define TEST_EQ00(addr1, addr2) int test_eq00_##addr1##_##addr2(void) { return (addr1 char*)0 == (addr2 char*)0; } #define TEST_EQ0N(addr1, addr2) int test_eq0N_##addr1##_##addr2(void) { return (addr1 char*)0 == (addr2 char*)NULL; } #define TEST_EQN0(addr1, addr2) int test_eqN0_##addr1##_##addr2(void) { return (addr1 char*)NULL == (addr2 char*)0; } diff --git a/clang/test/Driver/config-file2.c b/clang/test/Driver/config-file2.c index ff19a93697e..8b57a92e1e8 100644 --- a/clang/test/Driver/config-file2.c +++ b/clang/test/Driver/config-file2.c @@ -17,7 +17,7 @@ //--- Invocation `clang --config x86_64-qqq2 -m32` loads `x86_64-qqq2.cfg` if `i386-qqq2.cfg` and `i386.cfg` do not exist. // // RUN: %clang --config-system-dir=%S/Inputs/config --config-user-dir= --config x86_64-qqq2 -m32 -c %s -### 2>&1 | FileCheck %s -check-prefix CHECK-RELOAD2 -// note: target is overriden due to -m32 +// note: target is overridden due to -m32 // CHECK-RELOAD2: Target: i386 // CHECK-RELOAD2: Configuration file: {{.*}}Inputs{{.}}config{{.}}x86_64-qqq2.cfg @@ -39,7 +39,7 @@ //--- Invocation `clang --config x86_64-qqq2 -target i386` loads `x86_64-qqq2.cfg` if `i386-qqq2.cfg` and `i386.cfg` do not exist. // // RUN: %clang --config-system-dir=%S/Inputs/config --config-user-dir= --config x86_64-qqq2 -target i386 -c %s -### 2>&1 | FileCheck %s -check-prefix CHECK-RELOAD5 -// note: target is overriden due to -target i386 +// note: target is overridden due to -target i386 // CHECK-RELOAD5: Target: i386 // CHECK-RELOAD5: Configuration file: {{.*}}Inputs{{.}}config{{.}}x86_64-qqq2.cfg diff --git a/clang/test/Driver/cuda-options.cu b/clang/test/Driver/cuda-options.cu index 67d4fdeae2c..68a35391d0b 100644 --- a/clang/test/Driver/cuda-options.cu +++ b/clang/test/Driver/cuda-options.cu @@ -62,7 +62,7 @@ // RUN: -check-prefix HOST -check-prefix INCLUDES-DEVICE \ // RUN: -check-prefix LINK %s -// Verify that --cuda-gpu-arch option passes the correct GPU archtecture to +// Verify that --cuda-gpu-arch option passes the correct GPU architecture to // device compilation. // RUN: %clang -### -target x86_64-linux-gnu --cuda-gpu-arch=sm_30 -c %s 2>&1 \ // RUN: | FileCheck -check-prefix DEVICE -check-prefix DEVICE-NOSAVE \ @@ -92,21 +92,21 @@ // RUN: -check-prefix HOST-AS -check-prefix NOLINK %s // Verify that --[no-]cuda-gpu-arch arguments are handled correctly. -// a) --no-cuda-gpu-arch=X negates preceeding --cuda-gpu-arch=X +// a) --no-cuda-gpu-arch=X negates preceding --cuda-gpu-arch=X // RUN: %clang -### -target x86_64-linux-gnu --cuda-device-only \ // RUN: --cuda-gpu-arch=sm_35 --cuda-gpu-arch=sm_30 \ // RUN: --no-cuda-gpu-arch=sm_35 \ // RUN: -c %s 2>&1 \ // RUN: | FileCheck -check-prefixes NOARCH-SM20,ARCH-SM30,NOARCH-SM35 %s -// b) --no-cuda-gpu-arch=X negates more than one preceeding --cuda-gpu-arch=X +// b) --no-cuda-gpu-arch=X negates more than one preceding --cuda-gpu-arch=X // RUN: %clang -### -target x86_64-linux-gnu --cuda-device-only \ // RUN: --cuda-gpu-arch=sm_35 --cuda-gpu-arch=sm_35 --cuda-gpu-arch=sm_30 \ // RUN: --no-cuda-gpu-arch=sm_35 \ // RUN: -c %s 2>&1 \ // RUN: | FileCheck -check-prefixes NOARCH-SM20,ARCH-SM30,NOARCH-SM35 %s -// c) if --no-cuda-gpu-arch=X negates all preceeding --cuda-gpu-arch=X +// c) if --no-cuda-gpu-arch=X negates all preceding --cuda-gpu-arch=X // we default to sm_20 -- same as if no --cuda-gpu-arch were passed. // RUN: %clang -### -target x86_64-linux-gnu --cuda-device-only \ // RUN: --cuda-gpu-arch=sm_35 --cuda-gpu-arch=sm_30 \ diff --git a/clang/test/Driver/darwin-version.c b/clang/test/Driver/darwin-version.c index 411f268f22c..75279b9e0c5 100644 --- a/clang/test/Driver/darwin-version.c +++ b/clang/test/Driver/darwin-version.c @@ -218,7 +218,7 @@ // CHECK-VERSION-TNO-SAME-NOT: overriding // CHECK-VERSION-TNO-SAME-NOT: argument unused during compilation -// Target with OS version is not overriden by -m<os>-version-min variables: +// Target with OS version is not overridden by -m<os>-version-min variables: // RUN: %clang -target x86_64-apple-macos10.11.2 -mmacos-version-min=10.6 -c %s -### 2>&1 | \ // RUN: FileCheck --check-prefix=CHECK-VERSION-TIGNORE-OSV1 %s @@ -236,7 +236,7 @@ // RUN: FileCheck --check-prefix=CHECK-VERSION-TIGNORE-OSV4 %s // CHECK-VERSION-TIGNORE-OSV4: "thumbv7k-apple-watchos3.0.0" -// Target without OS version inlcudes the OS given by -m<os>-version-min arguments: +// Target without OS version includes the OS given by -m<os>-version-min arguments: // RUN: %clang -target x86_64-apple-macos -mmacos-version-min=10.11 -c %s -### 2>&1 | \ // RUN: FileCheck --check-prefix=CHECK-VERSION-USE-OS-ARG1 %s @@ -254,7 +254,7 @@ // RUN: FileCheck --check-prefix=CHECK-VERSION-USE-OS-ARG4 %s // CHECK-VERSION-USE-OS-ARG4: "thumbv7k-apple-watchos4.0.0" -// Target with OS version is not overriden by environment variables: +// Target with OS version is not overridden by environment variables: // RUN: env MACOSX_DEPLOYMENT_TARGET=10.1 \ // RUN: %clang -target i386-apple-macos10.5 -c %s -### 2>&1 | \ @@ -276,7 +276,7 @@ // RUN: FileCheck --check-prefix=CHECK-VERSION-TWATCHOS-CMD %s // CHECK-VERSION-TWATCHOS-CMD: "thumbv7k-apple-watchos3.0.0" -// Target with OS version is not overriden by the SDK: +// Target with OS version is not overridden by the SDK: // RUN: %clang -target armv7-apple-ios9 -Wno-missing-sysroot -isysroot SDKs/iPhoneOS11.0.sdk -c -### %s 2>&1 | \ // RUN: FileCheck --check-prefix=CHECK-VERSION-TIOS-SDK %s @@ -290,7 +290,7 @@ // RUN: FileCheck --check-prefix=CHECK-VERSION-TTVOS-SDK %s // CHECK-VERSION-TTVOS-SDK: thumbv7-apple-tvos9 -// Target with OS version is not overriden by arch: +// Target with OS version is not overridden by arch: // RUN: %clang -target uknown-apple-macos10.11.2 -arch=armv7k -c %s -### 2>&1 | \ // RUN: FileCheck --check-prefix=CHECK-VERSION-TIGNORE-ARCH1 %s diff --git a/clang/test/Driver/fsanitize-blacklist.c b/clang/test/Driver/fsanitize-blacklist.c index ffd637cf94f..1ad4aa76b65 100644 --- a/clang/test/Driver/fsanitize-blacklist.c +++ b/clang/test/Driver/fsanitize-blacklist.c @@ -40,7 +40,7 @@ // CHECK-NO-SANITIZE-NOT: -fsanitize-blacklist // Ignore -fsanitize-blacklist flag if there is no -fsanitize flag. -// Now, check for the absense of -fdepfile-entry flags. +// Now, check for the absence of -fdepfile-entry flags. // RUN: %clang -target x86_64-linux-gnu -fsanitize-blacklist=%t.good %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-SANITIZE2 --check-prefix=DELIMITERS // CHECK-NO-SANITIZE2-NOT: -fdepfile-entry diff --git a/clang/test/Driver/hexagon-hvx.c b/clang/test/Driver/hexagon-hvx.c index 8a0ce8a652d..70699ce3df5 100644 --- a/clang/test/Driver/hexagon-hvx.c +++ b/clang/test/Driver/hexagon-hvx.c @@ -35,7 +35,7 @@ // RUN: 2>&1 | FileCheck -check-prefix=CHECK-NOHVX %s // CHECK-NOHVX-NOT: "-target-feature" "+hvx -// Hvx target feature should be added if -mno-hvx doesnot occur last +// Hvx target feature should be added if -mno-hvx doesn't occur last // RUN: %clang -c %s -### -target hexagon-unknown-elf -mv62 -mno-hvx -mhvx\ // RUN: 2>&1 | FileCheck -check-prefix=CHECK-HVXFEAT %s // CHECK-HVXFEAT: "-target-feature" "+hvxv62" diff --git a/clang/test/Driver/rtti-options.cpp b/clang/test/Driver/rtti-options.cpp index bb2958d845b..954e00dfda9 100644 --- a/clang/test/Driver/rtti-options.cpp +++ b/clang/test/Driver/rtti-options.cpp @@ -1,5 +1,5 @@ // Check that we emit warnings/errors for different combinations of -// exceptions, rtti, and vptr sanitizer flags when targetting the PS4. +// exceptions, rtti, and vptr sanitizer flags when targeting the PS4. // No warnings/errors should be emitted for unknown, except if combining // the vptr sanitizer with -fno-rtti diff --git a/clang/test/Headers/ms-null-ms-header-vs-stddef.cpp b/clang/test/Headers/ms-null-ms-header-vs-stddef.cpp index e3910896713..f39a0cafaa0 100644 --- a/clang/test/Headers/ms-null-ms-header-vs-stddef.cpp +++ b/clang/test/Headers/ms-null-ms-header-vs-stddef.cpp @@ -2,7 +2,7 @@ // RUN: %clang_cc1 -fsyntax-only -triple i386-mingw32 %s // Something in MSVC's headers (pulled in e.g. by <crtdefs.h>) defines __null -// to something, mimick that. +// to something, mimic that. #define __null #include <stddef.h> diff --git a/clang/test/Index/headerfile-comment-to-html.m b/clang/test/Index/headerfile-comment-to-html.m index 8326a901402..679314dbc1d 100644 --- a/clang/test/Index/headerfile-comment-to-html.m +++ b/clang/test/Index/headerfile-comment-to-html.m @@ -58,11 +58,11 @@ \brief Test that headerfile can come after brief. \headerfile VTDevice.h <VTFoundation/VTDevice.h> - More property decription goes here. + More property description goes here. */ @interface VTDevice : Device @end -// CHECK: headerfile-comment-to-html.m:[[@LINE-2]]:12: ObjCInterfaceDecl=VTDevice:{{.*}} FullCommentAsXML=[<Other file="{{[^"]+}}headerfile-comment-to-html.m" line="[[@LINE-2]]" column="12"><Name>VTDevice</Name><USR>c:objc(cs)VTDevice</USR><Headerfile><Para> VTDevice.h <VTFoundation/VTDevice.h></Para></Headerfile><Declaration>@interface VTDevice : Device\n@end</Declaration><Abstract><Para> Test that headerfile can come after brief. </Para></Abstract><Discussion><Para> More property decription goes here.</Para></Discussion></Other>] +// CHECK: headerfile-comment-to-html.m:[[@LINE-2]]:12: ObjCInterfaceDecl=VTDevice:{{.*}} FullCommentAsXML=[<Other file="{{[^"]+}}headerfile-comment-to-html.m" line="[[@LINE-2]]" column="12"><Name>VTDevice</Name><USR>c:objc(cs)VTDevice</USR><Headerfile><Para> VTDevice.h <VTFoundation/VTDevice.h></Para></Headerfile><Declaration>@interface VTDevice : Device\n@end</Declaration><Abstract><Para> Test that headerfile can come after brief. </Para></Abstract><Discussion><Para> More property description goes here.</Para></Discussion></Other>] // CHECK-NEXT: CommentAST=[ // CHECK-NEXT: (CXComment_FullComment // CHECK-NEXT: (CXComment_Paragraph IsWhitespace @@ -77,7 +77,7 @@ // CHECK-NEXT: (CXComment_Text Text=[<VTFoundation]) // CHECK-NEXT: (CXComment_Text Text=[/VTDevice.h>]))) // CHECK-NEXT: (CXComment_Paragraph -// CHECK-NEXT: (CXComment_Text Text=[ More property decription goes here.])))] +// CHECK-NEXT: (CXComment_Text Text=[ More property description goes here.])))] /*! \headerfile <stdio.h> diff --git a/clang/test/Misc/ast-print-pragmas-xfail.cpp b/clang/test/Misc/ast-print-pragmas-xfail.cpp index 994e1fda320..69ba48d0de2 100644 --- a/clang/test/Misc/ast-print-pragmas-xfail.cpp +++ b/clang/test/Misc/ast-print-pragmas-xfail.cpp @@ -5,7 +5,7 @@ void run1(int *List, int Length) { int i = 0; -// CEHCK: #pragma loop vectorize(4) +// CHECK: #pragma loop vectorize(4) // CHECK-NEXT: #pragma loop interleave(8) // CHECK-NEXT: #pragma loop vectorize(enable) // CHECK-NEXT: #pragma loop interleave(enable) diff --git a/clang/test/Misc/warning-flags.c b/clang/test/Misc/warning-flags.c index 2c48fa4dbf3..c8ee9bcfdac 100644 --- a/clang/test/Misc/warning-flags.c +++ b/clang/test/Misc/warning-flags.c @@ -81,7 +81,7 @@ CHECK-NEXT: warn_on_superclass_use CHECK-NEXT: warn_pp_convert_to_positive CHECK-NEXT: warn_pp_expr_overflow CHECK-NEXT: warn_pp_line_decimal -CHECK-NEXT: warn_pragma_pack_pop_identifer_and_alignment +CHECK-NEXT: warn_pragma_pack_pop_identifier_and_alignment CHECK-NEXT: warn_pragma_pack_show CHECK-NEXT: warn_property_getter_owning_mismatch CHECK-NEXT: warn_register_objc_catch_parm diff --git a/clang/test/OpenMP/target_codegen_registration.cpp b/clang/test/OpenMP/target_codegen_registration.cpp index febfd7fedae..7f3433ad63f 100644 --- a/clang/test/OpenMP/target_codegen_registration.cpp +++ b/clang/test/OpenMP/target_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_parallel_codegen_registration.cpp b/clang/test/OpenMP/target_parallel_codegen_registration.cpp index 4b28c6c23ff..64437b2aba9 100644 --- a/clang/test/OpenMP/target_parallel_codegen_registration.cpp +++ b/clang/test/OpenMP/target_parallel_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_parallel_for_codegen_registration.cpp b/clang/test/OpenMP/target_parallel_for_codegen_registration.cpp index c074be8ba42..c47221dd920 100644 --- a/clang/test/OpenMP/target_parallel_for_codegen_registration.cpp +++ b/clang/test/OpenMP/target_parallel_for_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_parallel_for_simd_codegen_registration.cpp b/clang/test/OpenMP/target_parallel_for_simd_codegen_registration.cpp index 226cd28b5c6..1171909b278 100644 --- a/clang/test/OpenMP/target_parallel_for_simd_codegen_registration.cpp +++ b/clang/test/OpenMP/target_parallel_for_simd_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_simd_codegen_registration.cpp b/clang/test/OpenMP/target_simd_codegen_registration.cpp index 1ca65b9f469..cf6d7343230 100644 --- a/clang/test/OpenMP/target_simd_codegen_registration.cpp +++ b/clang/test/OpenMP/target_simd_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_teams_codegen_registration.cpp b/clang/test/OpenMP/target_teams_codegen_registration.cpp index 3e6d6e62d24..10fc715d568 100644 --- a/clang/test/OpenMP/target_teams_codegen_registration.cpp +++ b/clang/test/OpenMP/target_teams_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_teams_distribute_codegen_registration.cpp b/clang/test/OpenMP/target_teams_distribute_codegen_registration.cpp index 1d053fde67e..92f735d39b7 100644 --- a/clang/test/OpenMP/target_teams_distribute_codegen_registration.cpp +++ b/clang/test/OpenMP/target_teams_distribute_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp b/clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp index 81be36fbe32..bd10cd490ed 100644 --- a/clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp +++ b/clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/OpenMP/target_teams_distribute_simd_codegen_registration.cpp b/clang/test/OpenMP/target_teams_distribute_simd_codegen_registration.cpp index 7bb888856dd..3864ef608b9 100644 --- a/clang/test/OpenMP/target_teams_distribute_simd_codegen_registration.cpp +++ b/clang/test/OpenMP/target_teams_distribute_simd_codegen_registration.cpp @@ -34,7 +34,7 @@ // RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -fopenmp-is-device -fopenmp-host-ir-file-path %t-x86-host.bc -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} -// Check that no target code is emmitted if no omptests flag was provided. +// Check that no target code is emitted if no omptests flag was provided. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-NTARGET // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s diff --git a/clang/test/Parser/brackets.c b/clang/test/Parser/brackets.c index a1003f399da..4ce38bd1ce3 100644 --- a/clang/test/Parser/brackets.c +++ b/clang/test/Parser/brackets.c @@ -15,10 +15,10 @@ void test1() { // CHECK: fix-it:{{.*}}:{[[@LINE-6]]:10-[[@LINE-6]]:10}:"[]" int c = a[0]; - int d = b[0]; // No undeclared identifer error here. + int d = b[0]; // No undeclared identifier error here. int *e = a; - int *f = b; // No undeclared identifer error here. + int *f = b; // No undeclared identifier error here. } struct S { diff --git a/clang/test/Parser/brackets.cpp b/clang/test/Parser/brackets.cpp index 6963a75ab39..415cbdda83f 100644 --- a/clang/test/Parser/brackets.cpp +++ b/clang/test/Parser/brackets.cpp @@ -15,10 +15,10 @@ void test1() { // CHECK: fix-it:{{.*}}:{[[@LINE-6]]:10-[[@LINE-6]]:10}:"[]" int c = a[0]; - int d = b[0]; // No undeclared identifer error here. + int d = b[0]; // No undeclared identifier error here. int *e = a; - int *f = b; // No undeclared identifer error here. + int *f = b; // No undeclared identifier error here. int[1] g[2]; // expected-error@-1{{brackets are not allowed here; to declare an array, place the brackets after the name}} diff --git a/clang/test/Preprocessor/macro_paste_commaext.c b/clang/test/Preprocessor/macro_paste_commaext.c index 60418effe7c..f3e6f9d4094 100644 --- a/clang/test/Preprocessor/macro_paste_commaext.c +++ b/clang/test/Preprocessor/macro_paste_commaext.c @@ -1,9 +1,9 @@ // RUN: %clang_cc1 %s -E | FileCheck --strict-whitespace --match-full-lines %s // In the following tests, note that the output is sensitive to the -// whitespace *preceeding* the varargs argument, as well as to +// whitespace *preceding* the varargs argument, as well as to // interior whitespace. AFAIK, this is the only case where whitespace -// preceeding an argument matters, and might be considered a bug in +// preceding an argument matters, and might be considered a bug in // GCC. Nevertheless, since this feature is a GCC extension in the // first place, we'll follow along. diff --git a/clang/test/Sema/attr-availability-tvos.c b/clang/test/Sema/attr-availability-tvos.c index d53d6ac8edc..68337e49ce4 100644 --- a/clang/test/Sema/attr-availability-tvos.c +++ b/clang/test/Sema/attr-availability-tvos.c @@ -53,7 +53,7 @@ void test_tvos() { f3_tvos(0); f4_tvos(0); // expected-error{{'f4_tvos' is unavailable: obsoleted in tvOS 3.0}} // We get no warning here because any explicit 'tvos' availability causes - // the ios availablity to not implicitly become 'tvos' availability. Otherwise we'd get + // the ios availability to not implicitly become 'tvos' availability. Otherwise we'd get // a deprecated warning. f5_tvos(0); // no-warning f5_attr_reversed_tvos(0); // no-warning diff --git a/clang/test/Sema/attr-availability-watchos.c b/clang/test/Sema/attr-availability-watchos.c index ec7f3a7d3af..59233986ee4 100644 --- a/clang/test/Sema/attr-availability-watchos.c +++ b/clang/test/Sema/attr-availability-watchos.c @@ -42,7 +42,7 @@ void test_watchos() { f3_watchos(0); f4_watchos(0); // expected-error{{'f4_watchos' is unavailable: obsoleted in watchOS 3.0}} // We get no warning here because any explicit 'watchos' availability causes - // the ios availablity to not implicitly become 'watchos' availability. Otherwise we'd get + // the ios availability to not implicitly become 'watchos' availability. Otherwise we'd get // a deprecated warning. f5_watchos(0); // no-warning f5_attr_reversed_watchos(0); // no-warning diff --git a/clang/test/Sema/pr30372.c b/clang/test/Sema/pr30372.c index e10fa2c8413..87c1c1bc934 100644 --- a/clang/test/Sema/pr30372.c +++ b/clang/test/Sema/pr30372.c @@ -1,7 +1,7 @@ // REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -triple i386-pc-windows-msvc18.0.0 -disable-free -fms-volatile -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11 -x c++ -// Check that the parser catching an 'error' from forward declaration of "location" does not lexer out it's subsequent declation. +// Check that the parser catching an 'error' from forward declaration of "location" does not lexer out it's subsequent declaration. void foo() { __asm { diff --git a/clang/test/Sema/self-comparison.c b/clang/test/Sema/self-comparison.c index bd7adcd9cda..4c848f030e1 100644 --- a/clang/test/Sema/self-comparison.c +++ b/clang/test/Sema/self-comparison.c @@ -60,7 +60,7 @@ int array_comparisons() { return array1 >= array1; // expected-warning{{self-comparison always evaluates to true}} // - // compare differrent arrays + // compare different arrays // return array1 == array2; // expected-warning{{array comparison always evaluates to false}} return array1 != array2; // expected-warning{{array comparison always evaluates to true}} diff --git a/clang/test/Sema/tls.c b/clang/test/Sema/tls.c index 38bd3f20224..e4d0656d1dd 100644 --- a/clang/test/Sema/tls.c +++ b/clang/test/Sema/tls.c @@ -12,11 +12,11 @@ // RUN: %clang_cc1 -triple x86_64-pc-win32 -fsyntax-only %s // RUN: %clang_cc1 -triple i386-pc-win32 -fsyntax-only %s -// OpenBSD suppports TLS. +// OpenBSD supports TLS. // RUN: %clang_cc1 -triple x86_64-pc-openbsd -fsyntax-only %s // RUN: %clang_cc1 -triple i386-pc-openbsd -fsyntax-only %s -// Haiku does not suppport TLS. +// Haiku does not support TLS. // RUN: not %clang_cc1 -triple i586-pc-haiku -fsyntax-only %s __thread int x; diff --git a/clang/test/Sema/uninit-variables.c b/clang/test/Sema/uninit-variables.c index 9e3dd9d2875..89ea190cbc6 100644 --- a/clang/test/Sema/uninit-variables.c +++ b/clang/test/Sema/uninit-variables.c @@ -111,7 +111,7 @@ void test15() { int test15b() { // Warn here with the self-init, since it does result in a use of - // an unintialized variable and this is the root cause. + // an uninitialized variable and this is the root cause. int x = x; // expected-warning {{variable 'x' is uninitialized when used within its own initialization}} return x; } diff --git a/clang/test/Sema/vector-gcc-compat.c b/clang/test/Sema/vector-gcc-compat.c index 9eb0569b25f..73b56347f1b 100644 --- a/clang/test/Sema/vector-gcc-compat.c +++ b/clang/test/Sema/vector-gcc-compat.c @@ -114,7 +114,7 @@ void logicTest(void) { v2i64_a >>= 1; } -// For operations with floating point types, we check that interger constants +// For operations with floating point types, we check that integer constants // can be respresented, or failing that checking based on the integer types. void floatTestConstant(void) { // Test that constants added to floats must be expressible as floating point diff --git a/clang/test/Sema/vector-gcc-compat.cpp b/clang/test/Sema/vector-gcc-compat.cpp index 12da314c325..71497d95eb6 100644 --- a/clang/test/Sema/vector-gcc-compat.cpp +++ b/clang/test/Sema/vector-gcc-compat.cpp @@ -112,7 +112,7 @@ void logicTest(void) { v2i64_a >>= 1; } -// For operations with floating point types, we check that interger constants +// For operations with floating point types, we check that integer constants // can be respresented, or failing that checking based on the integer types. void floatTestConstant(void) { // Test that constants added to floats must be expressible as floating point diff --git a/clang/test/Sema/warn-documentation.m b/clang/test/Sema/warn-documentation.m index 18ab5bd9e09..0b75bcf80d5 100644 --- a/clang/test/Sema/warn-documentation.m +++ b/clang/test/Sema/warn-documentation.m @@ -218,13 +218,13 @@ int FooBar(); // rdar://14124644 @interface test_vararg1 -/// @param[in] arg somthing +/// @param[in] arg something /// @param[in] ... This is vararg - (void) VarArgMeth : (id)arg, ...; @end @implementation test_vararg1 -/// @param[in] arg somthing +/// @param[in] arg something /// @param[in] ... This is vararg - (void) VarArgMeth : (id)arg, ... {} @end diff --git a/clang/test/Sema/warn-string-conversion.c b/clang/test/Sema/warn-string-conversion.c index 28dfc1b67dd..fbbc264f8f9 100644 --- a/clang/test/Sema/warn-string-conversion.c +++ b/clang/test/Sema/warn-string-conversion.c @@ -12,7 +12,7 @@ void assert_error(); #define assert2(expr) \ ((expr) ? do_nothing() : assert_error()) -// Expection for common assert form. +// Exception for common assert form. void test1() { assert1(0 && "foo"); assert1("foo" && 0); diff --git a/clang/test/SemaCUDA/function-template-overload.cu b/clang/test/SemaCUDA/function-template-overload.cu index 56bba653958..5d75d60d067 100644 --- a/clang/test/SemaCUDA/function-template-overload.cu +++ b/clang/test/SemaCUDA/function-template-overload.cu @@ -41,7 +41,7 @@ template <typename T> __device__ HDType overload_hd(T a); __device__ HDType overload_hd(int a); // OK. // Verify that target attributes are taken into account when we -// explicitly specialize or instantiate function tempaltes. +// explicitly specialize or instantiate function templates. template <> __host__ HType overload_hd(int a); // expected-error@-1 {{no function template matches function template specialization 'overload_hd'}} template __host__ HType overload_hd(long a); diff --git a/clang/test/SemaCXX/conditional-expr.cpp b/clang/test/SemaCXX/conditional-expr.cpp index 5025990cfd3..7e6b0ce8e8f 100644 --- a/clang/test/SemaCXX/conditional-expr.cpp +++ b/clang/test/SemaCXX/conditional-expr.cpp @@ -149,7 +149,7 @@ void test() i1 = i1 ? i1 : I(); I i2(i1 ? I() : J()); I i3(i1 ? J() : I()); - // "the type [it] woud have if E2 were converted to an rvalue" + // "the type [it] would have if E2 were converted to an rvalue" vfn pfn = i1 ? F() : test; pfn = i1 ? test : F(); (void)(i1 ? A() : B()); // expected-error {{conversion from 'B' to 'A' is ambiguous}} diff --git a/clang/test/SemaCXX/err_typecheck_assign_const_filecheck.cpp b/clang/test/SemaCXX/err_typecheck_assign_const_filecheck.cpp index 0d29b1e12f2..72ae40f0bdc 100644 --- a/clang/test/SemaCXX/err_typecheck_assign_const_filecheck.cpp +++ b/clang/test/SemaCXX/err_typecheck_assign_const_filecheck.cpp @@ -220,7 +220,7 @@ void test4(const A Ca) { // CHECK-NOT: note: } -// Only display notes for relavent cases. +// Only display notes for relevant cases. void test5(const A Ca) { Ca.Mb.c.d.Ce.num = 5; // CHECK-NOT: error: diff --git a/clang/test/SemaCXX/type-traits.cpp b/clang/test/SemaCXX/type-traits.cpp index 3370468351e..a25f4bd6b2e 100644 --- a/clang/test/SemaCXX/type-traits.cpp +++ b/clang/test/SemaCXX/type-traits.cpp @@ -2535,7 +2535,7 @@ struct VirtuallyInheritsFromNoPadding : virtual NoPadding { int d; }; -static_assert(!has_unique_object_representations<VirtuallyInheritsFromNoPadding>::value, "No virtual inheritence"); +static_assert(!has_unique_object_representations<VirtuallyInheritsFromNoPadding>::value, "No virtual inheritance"); struct Padding { char a; diff --git a/clang/test/SemaCXX/uninitialized.cpp b/clang/test/SemaCXX/uninitialized.cpp index 92f1c1472ca..f620e1014c3 100644 --- a/clang/test/SemaCXX/uninitialized.cpp +++ b/clang/test/SemaCXX/uninitialized.cpp @@ -26,7 +26,7 @@ int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}} int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}} -// Thes don't warn as they don't require the value. +// These don't warn as they don't require the value. int g = sizeof(g); void* ptr = &ptr; int h = bar(&h); @@ -60,7 +60,7 @@ void test_stuff () { int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}} int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}} - // Thes don't warn as they don't require the value. + // These don't warn as they don't require the value. int g = sizeof(g); void* ptr = &ptr; int h = bar(&h); @@ -94,7 +94,7 @@ void test_stuff () { int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}} int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}} - // Thes don't warn as they don't require the value. + // These don't warn as they don't require the value. int g = sizeof(g); void* ptr = &ptr; int h = bar(&h); @@ -704,7 +704,7 @@ namespace statics { static int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}} static int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}} - // Thes don't warn as they don't require the value. + // These don't warn as they don't require the value. static int g = sizeof(g); int gg = g; // Silence unneeded warning static void* ptr = &ptr; @@ -740,7 +740,7 @@ namespace statics { static int e = static_cast<long>(e) + 1; // expected-warning {{static variable 'e' is suspiciously used within its own initialization}} static int f = foo(f); // expected-warning {{static variable 'f' is suspiciously used within its own initialization}} - // Thes don't warn as they don't require the value. + // These don't warn as they don't require the value. static int g = sizeof(g); static void* ptr = &ptr; static int h = bar(&h); @@ -774,7 +774,7 @@ namespace statics { static int e = static_cast<long>(e) + 1; // expected-warning {{static variable 'e' is suspiciously used within its own initialization}} static int f = foo(f); // expected-warning {{static variable 'f' is suspiciously used within its own initialization}} - // Thes don't warn as they don't require the value. + // These don't warn as they don't require the value. static int g = sizeof(g); static void* ptr = &ptr; static int h = bar(&h); diff --git a/clang/test/SemaCXX/vector.cpp b/clang/test/SemaCXX/vector.cpp index 9b272444a23..8fe24a32c86 100644 --- a/clang/test/SemaCXX/vector.cpp +++ b/clang/test/SemaCXX/vector.cpp @@ -190,7 +190,7 @@ void test_implicit_conversions(bool Cond, char16 c16, longlong16 ll16, (void)(Cond? to_c16 : to_c16e); (void)(Cond? to_ll16e : to_ll16); - // These 2 are convertable with -flax-vector-conversions (default) + // These 2 are convertible with -flax-vector-conversions (default) (void)(Cond? to_c16 : to_ll16); (void)(Cond? to_c16e : to_ll16e); } diff --git a/clang/test/SemaCXX/warn-thread-safety-analysis.cpp b/clang/test/SemaCXX/warn-thread-safety-analysis.cpp index db1373d5a1e..0a1db73103e 100644 --- a/clang/test/SemaCXX/warn-thread-safety-analysis.cpp +++ b/clang/test/SemaCXX/warn-thread-safety-analysis.cpp @@ -1048,7 +1048,7 @@ void main() { namespace thread_annot_lock_61_modified { // Modified to fix the compiler errors // Test the fix for a bug introduced by the support of pass-by-reference - // paramters. + // parameters. struct Foo { Foo &operator<< (bool) {return *this;} }; Foo &getFoo(); struct Bar { Foo &func () {return getFoo();} }; @@ -1804,7 +1804,7 @@ struct TestTryLock { bool b = mu.TryLock(); while (cond) { - if (b) { // b should be uknown at this point b/c of the loop + if (b) { // b should be unknown at this point b/c of the loop a = 10; // expected-warning {{writing variable 'a' requires holding mutex 'mu' exclusively}} } b = !b; diff --git a/clang/test/SemaCXX/warn-unreachable.cpp b/clang/test/SemaCXX/warn-unreachable.cpp index 08118147b75..a14e4226861 100644 --- a/clang/test/SemaCXX/warn-unreachable.cpp +++ b/clang/test/SemaCXX/warn-unreachable.cpp @@ -102,7 +102,7 @@ void test_unreachable_templates_harness() { test_unreachable_templates<TestUnreachableB>(); } -// Do warn about explict template specializations, as they represent +// Do warn about explicit template specializations, as they represent // actual concrete functions that somebody wrote. template <typename T> void funcToSpecialize() {} diff --git a/clang/test/SemaObjC/arc-peformselector.m b/clang/test/SemaObjC/arc-peformselector.m index a7e5d3e8239..ec385af5821 100644 --- a/clang/test/SemaObjC/arc-peformselector.m +++ b/clang/test/SemaObjC/arc-peformselector.m @@ -36,7 +36,7 @@ return [self performSelector : @selector(PlusZero)]; return [self performSelector : @selector(PlusOne)]; // expected-error {{performSelector names a selector which retains the object}} - // Avoid the unkown selector warning for more complicated performSelector + // Avoid the unknown selector warning for more complicated performSelector // variations because it produces too many false positives. [self performSelector: sel1 withObject:0 afterDelay:0 inModes:0]; diff --git a/clang/test/SemaObjC/compare-qualified-class.m b/clang/test/SemaObjC/compare-qualified-class.m index a5256152144..c7d4a2ec1a3 100644 --- a/clang/test/SemaObjC/compare-qualified-class.m +++ b/clang/test/SemaObjC/compare-qualified-class.m @@ -53,7 +53,7 @@ int main () { @implementation OtherClass - (ClassA<ProtocolY> *)aMethod { // This does not work, even though ClassB subclasses from A and conforms to Y - // because the property type explicity adds ProtocolX conformance + // because the property type explicitly adds ProtocolX conformance // even though ClassB already conforms to ProtocolX return self.aProperty; } diff --git a/clang/test/SemaObjC/property-ivar-mismatch.m b/clang/test/SemaObjC/property-ivar-mismatch.m index 148fa8ebb27..3e2ae7eba12 100644 --- a/clang/test/SemaObjC/property-ivar-mismatch.m +++ b/clang/test/SemaObjC/property-ivar-mismatch.m @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s -// Test that arithmatic types on property and its ivar have exact match. +// Test that arithmetic types on property and its ivar have exact match. @interface Test4 { |

