diff options
Diffstat (limited to 'include/clang/AST')
-rw-r--r-- | include/clang/AST/CXXInheritance.h | 2 | ||||
-rw-r--r-- | include/clang/AST/CharUnits.h | 2 | ||||
-rw-r--r-- | include/clang/AST/Decl.h | 4 | ||||
-rw-r--r-- | include/clang/AST/DeclObjC.h | 4 | ||||
-rw-r--r-- | include/clang/AST/Expr.h | 2 | ||||
-rw-r--r-- | include/clang/AST/ExprObjC.h | 2 | ||||
-rw-r--r-- | include/clang/AST/Type.h | 4 |
7 files changed, 10 insertions, 10 deletions
diff --git a/include/clang/AST/CXXInheritance.h b/include/clang/AST/CXXInheritance.h index 2d30cb3b8b..d712e7d0c7 100644 --- a/include/clang/AST/CXXInheritance.h +++ b/include/clang/AST/CXXInheritance.h @@ -87,7 +87,7 @@ public: /// BasePaths - Represents the set of paths from a derived class to /// one of its (direct or indirect) bases. For example, given the -/// following class hierachy: +/// following class hierarchy: /// /// @code /// class A { }; diff --git a/include/clang/AST/CharUnits.h b/include/clang/AST/CharUnits.h index 5bfa19dd74..d7cbd08e6c 100644 --- a/include/clang/AST/CharUnits.h +++ b/include/clang/AST/CharUnits.h @@ -34,7 +34,7 @@ namespace clang { /// architectures where the two are the same size. /// /// For portability, never assume that a target character is 8 bits wide. Use - /// CharUnit values whereever you calculate sizes, offsets, or alignments + /// CharUnit values wherever you calculate sizes, offsets, or alignments /// in character units. class CharUnits { public: diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 48b7d9f1bf..44b04dfa1f 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -2398,7 +2398,7 @@ public: return IntegerType.dyn_cast<TypeSourceInfo*>(); } - /// \brief Returns the width in bits requred to store all the + /// \brief Returns the width in bits required to store all the /// non-negative enumerators of this enum. unsigned getNumPositiveBits() const { return NumPositiveBits; @@ -2408,7 +2408,7 @@ public: assert(NumPositiveBits == Num && "can't store this bitcount"); } - /// \brief Returns the width in bits requred to store all the + /// \brief Returns the width in bits required to store all the /// negative enumerators of this enum. These widths include /// the rightmost leading 1; that is: /// diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 84e7a63b02..0a4d864cd8 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -459,7 +459,7 @@ class ObjCInterfaceDecl : public ObjCContainerDecl { /// /// Categories are stored as a linked list in the AST, since the categories /// and class extensions come long after the initial interface declaration, - /// and we avoid dynamically-resized arrays in the AST whereever possible. + /// and we avoid dynamically-resized arrays in the AST wherever possible. ObjCCategoryDecl *CategoryList; /// IvarList - List of all ivars defined by this class; including class @@ -783,7 +783,7 @@ public: /// ObjCProtocolDecl - Represents a protocol declaration. ObjC protocols /// declare a pure abstract type (i.e no instance variables are permitted). -/// Protocols orginally drew inspiration from C++ pure virtual functions (a C++ +/// Protocols originally drew inspiration from C++ pure virtual functions (a C++ /// feature with nice semantics and lousy syntax:-). Here is an example: /// /// @protocol NSDraggingInfo <refproto1, refproto2> diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 9de01af64f..472de76eb8 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -3231,7 +3231,7 @@ public: /// /// When @p Init is out of range for this initializer list, the /// initializer list will be extended with NULL expressions to - /// accomodate the new entry. + /// accommodate the new entry. Expr *updateInit(ASTContext &C, unsigned Init, Expr *expr); /// \brief If this initializes a union, specifies which field in the diff --git a/include/clang/AST/ExprObjC.h b/include/clang/AST/ExprObjC.h index 3ee6d1f229..8163923d62 100644 --- a/include/clang/AST/ExprObjC.h +++ b/include/clang/AST/ExprObjC.h @@ -846,7 +846,7 @@ public: }; /// ObjCIsaExpr - Represent X->isa and X.isa when X is an ObjC 'id' type. -/// (similiar in spirit to MemberExpr). +/// (similar in spirit to MemberExpr). class ObjCIsaExpr : public Expr { /// Base - the expression for the base object pointer. Stmt *Base; diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 6154f0e624..e74a9c9dd6 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -2007,7 +2007,7 @@ public: friend class StmtIteratorBase; void Profile(llvm::FoldingSetNodeID &ID) { - assert(0 && "Cannnot unique VariableArrayTypes."); + assert(0 && "Cannot unique VariableArrayTypes."); } }; @@ -2506,7 +2506,7 @@ public: bool hasDynamicExceptionSpec() const { return isDynamicExceptionSpec(getExceptionSpecType()); } - /// \brief Return whther this function has a noexcept exception spec. + /// \brief Return whether this function has a noexcept exception spec. bool hasNoexceptExceptionSpec() const { return isNoexceptExceptionSpec(getExceptionSpecType()); } |