From 2a8c18d99118827ff752cc8952a2096f33715f31 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 6 Apr 2018 15:14:32 +0000 Subject: Fix typos in clang Found via codespell -q 3 -I ../clang-whitelist.txt Where whitelist consists of: archtype cas classs checkk compres definit frome iff inteval ith lod methode nd optin ot pres statics te thru Patch by luzpaz! (This is a subset of D44188 that applies cleanly with a few files that have dubious fixes reverted.) Differential revision: https://reviews.llvm.org/D44188 llvm-svn: 329399 --- clang/test/SemaObjC/arc-peformselector.m | 2 +- clang/test/SemaObjC/compare-qualified-class.m | 2 +- clang/test/SemaObjC/property-ivar-mismatch.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/test/SemaObjC') 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 *)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 { -- cgit v1.2.3