From 15e62a37f0d48196c105711170755dd22d5328ce Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Fri, 6 Jun 2014 12:02:07 +0000 Subject: [PATCH] Fix typos llvm-svn: 210328 --- clang/include/clang/Basic/LLVM.h | 2 +- clang/include/clang/Sema/DeclSpec.h | 4 ++-- clang/include/clang/Sema/Overload.h | 2 +- clang/lib/CodeGen/MicrosoftRTTI.cpp | 12 ++++++------ clang/lib/Sema/SemaDeclCXX.cpp | 2 +- clang/lib/Sema/SemaOpenMP.cpp | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/clang/include/clang/Basic/LLVM.h b/clang/include/clang/Basic/LLVM.h index 01898f4aebb4..940c19eea066 100644 --- a/clang/include/clang/Basic/LLVM.h +++ b/clang/include/clang/Basic/LLVM.h @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// // /// \file -/// \brief Forward declares and imports various common LLVM datatypes that +/// \brief Forward-declares and imports various common LLVM datatypes that /// clang wants to use unqualified. /// //===----------------------------------------------------------------------===// diff --git a/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h index 99941b2e3263..8364dfc4b0bb 100644 --- a/clang/include/clang/Sema/DeclSpec.h +++ b/clang/include/clang/Sema/DeclSpec.h @@ -814,8 +814,8 @@ public: void setSetterName(IdentifierInfo *name) { SetterName = name; } private: - // FIXME: These two are unrelated and mutially exclusive. So perhaps - // we can put them in a union to reflect their mutual exclusiveness + // FIXME: These two are unrelated and mutually exclusive. So perhaps + // we can put them in a union to reflect their mutual exclusivity // (space saving is negligible). ObjCDeclQualifier objcDeclQualifier : 6; diff --git a/clang/include/clang/Sema/Overload.h b/clang/include/clang/Sema/Overload.h index 9618f8f10860..7b9f95d6353d 100644 --- a/clang/include/clang/Sema/Overload.h +++ b/clang/include/clang/Sema/Overload.h @@ -262,7 +262,7 @@ namespace clang { StandardConversionSequence Before; /// EllipsisConversion - When this is true, it means user-defined - /// conversion sequence starts with a ... (elipsis) conversion, instead of + /// conversion sequence starts with a ... (ellipsis) conversion, instead of /// a standard conversion. In this case, 'Before' field must be ignored. // FIXME. I much rather put this as the first field. But there seems to be // a gcc code gen. bug which causes a crash in a test. Putting it here seems diff --git a/clang/lib/CodeGen/MicrosoftRTTI.cpp b/clang/lib/CodeGen/MicrosoftRTTI.cpp index 0eb8100af56f..12f7f59b57d3 100644 --- a/clang/lib/CodeGen/MicrosoftRTTI.cpp +++ b/clang/lib/CodeGen/MicrosoftRTTI.cpp @@ -86,7 +86,7 @@ static llvm::StructType *getClassHierarchyDescriptorType(CodeGenModule &CGM) { static const char Name[] = "MSRTTIClassHierarchyDescriptor"; if (auto Type = CGM.getModule().getTypeByName(Name)) return Type; - // Forward declare RTTIClassHierarchyDescriptor to break a cycle. + // Forward-declare RTTIClassHierarchyDescriptor to break a cycle. llvm::StructType *Type = llvm::StructType::create(CGM.getLLVMContext(), Name); llvm::Type *FieldTypes[] = { CGM.IntTy, @@ -256,7 +256,7 @@ llvm::GlobalVariable *MSRTTIBuilder::getClassHierarchyDescriptor() { if (auto CHD = Module.getNamedGlobal(MangledName)) return CHD; - // Serialize the class hierarchy and initalize the CHD Fields. + // Serialize the class hierarchy and initialize the CHD Fields. SmallVector Classes; serializeClassHierarchy(Classes, RD); Classes.front().initialize(/*Parent=*/0, /*Specifier=*/0); @@ -277,7 +277,7 @@ llvm::GlobalVariable *MSRTTIBuilder::getClassHierarchyDescriptor() { llvm::Value *GEPIndices[] = {llvm::ConstantInt::get(CGM.IntTy, 0), llvm::ConstantInt::get(CGM.IntTy, 0)}; - // Forward declare the class hierarchy descriptor + // Forward-declare the class hierarchy descriptor auto Type = getClassHierarchyDescriptorType(CGM); auto CHD = new llvm::GlobalVariable(Module, Type, /*Constant=*/true, Linkage, /*Initializer=*/0, MangledName.c_str()); @@ -302,7 +302,7 @@ MSRTTIBuilder::getBaseClassArray(SmallVectorImpl &Classes) { Mangler.mangleCXXRTTIBaseClassArray(RD, Out); } - // Foward declare the base class array. + // Forward-declare the base class array. // cl.exe pads the base class array with 1 (in 32 bit mode) or 4 (in 64 bit // mode) bytes of padding. We provide a pointer sized amount of padding by // adding +1 to Classes.size(). The sections have pointer alignment and are @@ -345,7 +345,7 @@ MSRTTIBuilder::getBaseClassDescriptor(const MSRTTIClass &Class) { if (auto BCD = Module.getNamedGlobal(MangledName)) return BCD; - // Forward declare the base class descriptor. + // Forward-declare the base class descriptor. auto Type = getBaseClassDescriptorType(CGM); auto BCD = new llvm::GlobalVariable(Module, Type, /*Constant=*/true, Linkage, /*Initializer=*/0, MangledName.c_str()); @@ -386,7 +386,7 @@ MSRTTIBuilder::getCompleteObjectLocator(const VPtrInfo *Info) { ->second.hasVtorDisp()) VFPtrOffset = Info->NonVirtualOffset.getQuantity() + 4; - // Forward declare the complete object locator. + // Forward-declare the complete object locator. llvm::StructType *Type = getCompleteObjectLocatorType(CGM); auto COL = new llvm::GlobalVariable(Module, Type, /*Constant=*/true, Linkage, /*Initializer=*/0, MangledName.c_str()); diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 36e353e8953e..3f8034a49ff4 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -4408,7 +4408,7 @@ static void checkDLLAttribute(Sema &S, CXXRecordDecl *Class) { } else if (!MD->isTrivial() || MD->isExplicitlyDefaulted() || MD->isCopyAssignmentOperator() || MD->isMoveAssignmentOperator()) { - // Instantiate non-trival or explicitly defaulted methods, and the + // Instantiate non-trivial or explicitly defaulted methods, and the // copy assignment / move assignment operators. S.MarkFunctionReferenced(Class->getLocation(), MD); // Resolve its exception specification; CodeGen needs it. diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 8a987c3eae9c..4ebca79795a9 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -103,7 +103,7 @@ public: } /// \brief If 'aligned' declaration for given variable \a D was not seen yet, - /// add it and return NULL; otherwise return previous occurence's expression + /// add it and return NULL; otherwise return previous occurrence's expression /// for diagnostics. DeclRefExpr *addUniqueAligned(VarDecl *D, DeclRefExpr *NewDE);