diff options
| author | Alexander Kornienko <alexfh@google.com> | 2018-04-06 15:14:32 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2018-04-06 15:14:32 +0000 |
| commit | 2a8c18d99118827ff752cc8952a2096f33715f31 (patch) | |
| tree | 5fbe7871948cb2c241487ca9ee86159891d67b64 /clang/include | |
| parent | ad768585ff488cf01588b2d0caa1f95260031cdc (diff) | |
| download | bcm5719-llvm-2a8c18d99118827ff752cc8952a2096f33715f31.tar.gz bcm5719-llvm-2a8c18d99118827ff752cc8952a2096f33715f31.zip | |
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
Diffstat (limited to 'clang/include')
42 files changed, 58 insertions, 58 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 6468d1aa404..cc43b6a5359 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -4988,7 +4988,7 @@ enum CXCompletionChunkKind { * for "int x", indicating that the current argument will initialize that * parameter. After typing further, to \c add(17, (where the code-completion * point is after the ","), the code-completion string will contain a - * "current paremeter" chunk to "int y". + * "current parameter" chunk to "int y". */ CXCompletionChunk_CurrentParameter, /** @@ -5409,7 +5409,7 @@ CINDEX_LINKAGE unsigned clang_defaultCodeCompleteOptions(void); * user types punctuation characters or whitespace, at which point the * code-completion location will coincide with the cursor. For example, if \c p * is a pointer, code-completion might be triggered after the "-" and then - * after the ">" in \c p->. When the code-completion location is afer the ">", + * after the ">" in \c p->. When the code-completion location is after the ">", * the completion results will provide, e.g., the members of the struct that * "p" points to. The client is responsible for placing the cursor at the * beginning of the token currently being typed, then filtering the results diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index a5b090d355d..792766daf41 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -1113,7 +1113,7 @@ public: /// \brief Apply Objective-C protocol qualifiers to the given type. /// \param allowOnPointerType specifies if we can apply protocol /// qualifiers on ObjCObjectPointerType. It can be set to true when - /// contructing the canonical type of a Objective-C type parameter. + /// constructing the canonical type of a Objective-C type parameter. QualType applyObjCProtocolQualifiers(QualType type, ArrayRef<ObjCProtocolDecl *> protocols, bool &hasError, bool allowOnPointerType = false) const; diff --git a/clang/include/clang/AST/ASTTypeTraits.h b/clang/include/clang/AST/ASTTypeTraits.h index 51d60a90a14..5f8db4f3836 100644 --- a/clang/include/clang/AST/ASTTypeTraits.h +++ b/clang/include/clang/AST/ASTTypeTraits.h @@ -269,7 +269,7 @@ public: /// \brief Imposes an order on \c DynTypedNode. /// /// Supports comparison of nodes that support memoization. - /// FIXME: Implement comparsion for other node types (currently + /// FIXME: Implement comparison for other node types (currently /// only Stmt, Decl, Type and NestedNameSpecifier return memoization data). bool operator<(const DynTypedNode &Other) const { if (!NodeKind.isSame(Other.NodeKind)) diff --git a/clang/include/clang/AST/CanonicalType.h b/clang/include/clang/AST/CanonicalType.h index 6487613200d..93cb931314c 100644 --- a/clang/include/clang/AST/CanonicalType.h +++ b/clang/include/clang/AST/CanonicalType.h @@ -324,7 +324,7 @@ public: } }; -/// \brief Replacable canonical proxy adaptor class that provides the link +/// \brief Replaceable canonical proxy adaptor class that provides the link /// between a canonical type and the accessors of the type. /// /// The CanProxyAdaptor is a replaceable class template that is instantiated diff --git a/clang/include/clang/AST/Comment.h b/clang/include/clang/AST/Comment.h index 94470cbf305..e3a427d8aa0 100644 --- a/clang/include/clang/AST/Comment.h +++ b/clang/include/clang/AST/Comment.h @@ -990,7 +990,7 @@ struct DeclInfo { /// CurrentDecl is the declaration with which the FullComment is associated. /// - /// It can be different from \c CommentDecl. It happens when we we decide + /// It can be different from \c CommentDecl. It happens when we decide /// that the comment originally attached to \c CommentDecl is fine for /// \c CurrentDecl too (for example, for a redeclaration or an overrider of /// \c CommentDecl). diff --git a/clang/include/clang/AST/CommentLexer.h b/clang/include/clang/AST/CommentLexer.h index 5bb075807be..8a82fff7412 100644 --- a/clang/include/clang/AST/CommentLexer.h +++ b/clang/include/clang/AST/CommentLexer.h @@ -72,7 +72,7 @@ class Token { /// Integer value associated with a token. /// - /// If the token is a konwn command, contains command ID and TextPtr is + /// If the token is a known command, contains command ID and TextPtr is /// unused (command spelling can be found with CommandTraits). Otherwise, /// contains the length of the string that starts at TextPtr. unsigned IntVal; diff --git a/clang/include/clang/AST/DataCollection.h b/clang/include/clang/AST/DataCollection.h index 229ac2bd0f2..5d551a822e3 100644 --- a/clang/include/clang/AST/DataCollection.h +++ b/clang/include/clang/AST/DataCollection.h @@ -12,7 +12,7 @@ /// To collect data from Stmt nodes, subclass ConstStmtVisitor and include /// StmtDataCollectors.inc after defining the macros that you need. This /// provides data collection implementations for most Stmt kinds. Note -/// that that code requires some conditions to be met: +/// that the code requires some conditions to be met: /// /// - There must be a method addData(const T &Data) that accepts strings, /// integral types as well as QualType. All data is forwarded using diff --git a/clang/include/clang/AST/DeclCXX.h b/clang/include/clang/AST/DeclCXX.h index 5f5d3ba8ad0..27599e5d8f6 100644 --- a/clang/include/clang/AST/DeclCXX.h +++ b/clang/include/clang/AST/DeclCXX.h @@ -1078,7 +1078,7 @@ public: /// \brief Determine whether this class has a user-declared copy assignment /// operator. /// - /// When false, a copy assigment operator will be implicitly declared. + /// When false, a copy assignment operator will be implicitly declared. bool hasUserDeclaredCopyAssignment() const { return data().UserDeclaredSpecialMembers & SMF_CopyAssignment; } @@ -1941,7 +1941,7 @@ public: } // \brief Determine whether this type is an Interface Like type for - // __interface inheritence purposes. + // __interface inheritance purposes. bool isInterfaceLike() const; static bool classof(const Decl *D) { return classofKind(D->getKind()); } diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index 8c339a88c50..32d16ac782f 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/include/clang/AST/Expr.h @@ -586,7 +586,7 @@ public: bool EvaluateAsRValue(EvalResult &Result, const ASTContext &Ctx) const; /// EvaluateAsBooleanCondition - Return true if this is a constant - /// which we we can fold and convert to a boolean condition using + /// which we can fold and convert to a boolean condition using /// any crazy technique that we want to, even if the expression has /// side-effects. bool EvaluateAsBooleanCondition(bool &Result, const ASTContext &Ctx) const; @@ -3100,7 +3100,7 @@ public: static Opcode negateComparisonOp(Opcode Opc) { switch (Opc) { default: - llvm_unreachable("Not a comparsion operator."); + llvm_unreachable("Not a comparison operator."); case BO_LT: return BO_GE; case BO_GT: return BO_LE; case BO_LE: return BO_GT; @@ -3113,7 +3113,7 @@ public: static Opcode reverseComparisonOp(Opcode Opc) { switch (Opc) { default: - llvm_unreachable("Not a comparsion operator."); + llvm_unreachable("Not a comparison operator."); case BO_LT: return BO_GT; case BO_GT: return BO_LT; case BO_LE: return BO_GE; diff --git a/clang/include/clang/AST/ExternalASTMerger.h b/clang/include/clang/AST/ExternalASTMerger.h index 81492aec6e1..ae8a761e127 100644 --- a/clang/include/clang/AST/ExternalASTMerger.h +++ b/clang/include/clang/AST/ExternalASTMerger.h @@ -97,7 +97,7 @@ public: /// Add a set of ASTContexts as possible origins. /// /// Usually the set will be initialized in the constructor, but long-lived - /// ExternalASTMergers may neeed to import from new sources (for example, + /// ExternalASTMergers may need to import from new sources (for example, /// newly-parsed source files). /// /// Ensures that Importers does not gain duplicate entries as a result. diff --git a/clang/include/clang/AST/NestedNameSpecifier.h b/clang/include/clang/AST/NestedNameSpecifier.h index e2cb45c36de..318e07cb321 100644 --- a/clang/include/clang/AST/NestedNameSpecifier.h +++ b/clang/include/clang/AST/NestedNameSpecifier.h @@ -250,11 +250,11 @@ public: NestedNameSpecifierLoc(NestedNameSpecifier *Qualifier, void *Data) : Qualifier(Qualifier), Data(Data) {} - /// \brief Evalutes true when this nested-name-specifier location is + /// \brief Evaluates true when this nested-name-specifier location is /// non-empty. explicit operator bool() const { return Qualifier; } - /// \brief Evalutes true when this nested-name-specifier location is + /// \brief Evaluates true when this nested-name-specifier location is /// empty. bool hasQualifier() const { return Qualifier; } diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h index ba76ea0a0df..57641793f8c 100644 --- a/clang/include/clang/AST/RecursiveASTVisitor.h +++ b/clang/include/clang/AST/RecursiveASTVisitor.h @@ -146,7 +146,7 @@ namespace clang { /// from which they were produced. /// /// By default, this visitor preorder traverses the AST. If postorder traversal -/// is needed, the \c shouldTraversePostOrder method needs to be overriden +/// is needed, the \c shouldTraversePostOrder method needs to be overridden /// to return \c true. template <typename Derived> class RecursiveASTVisitor { public: diff --git a/clang/include/clang/AST/StmtOpenMP.h b/clang/include/clang/AST/StmtOpenMP.h index 88052097c2f..2a82576baaa 100644 --- a/clang/include/clang/AST/StmtOpenMP.h +++ b/clang/include/clang/AST/StmtOpenMP.h @@ -629,10 +629,10 @@ public: /// Distribute Loop condition used when composing 'omp distribute' /// with 'omp for' in a same construct Expr *Cond; - /// Update of LowerBound for statically sheduled omp loops for + /// Update of LowerBound for statically scheduled omp loops for /// outer loop in combined constructs (e.g. 'distribute parallel for') Expr *NLB; - /// Update of UpperBound for statically sheduled omp loops for + /// Update of UpperBound for statically scheduled omp loops for /// outer loop in combined constructs (e.g. 'distribute parallel for') Expr *NUB; }; @@ -666,9 +666,9 @@ public: Expr *ST; /// \brief EnsureUpperBound -- expression UB = min(UB, NumIterations). Expr *EUB; - /// \brief Update of LowerBound for statically sheduled 'omp for' loops. + /// \brief Update of LowerBound for statically scheduled 'omp for' loops. Expr *NLB; - /// \brief Update of UpperBound for statically sheduled 'omp for' loops. + /// \brief Update of UpperBound for statically scheduled 'omp for' loops. Expr *NUB; /// \brief PreviousLowerBound - local variable passed to runtime in the /// enclosing schedule or null if that does not apply. diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 3d61b07cac2..a97f5af5cef 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -2010,7 +2010,7 @@ public: TagDecl *getAsTagDecl() const; /// If this is a pointer or reference to a RecordType, return the - /// CXXRecordDecl that that type refers to. + /// CXXRecordDecl that the type refers to. /// /// If this is not a pointer or reference, or the type being pointed to does /// not refer to a CXXRecordDecl, returns NULL. diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 5008d53e560..2edb6025f30 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -4298,7 +4298,7 @@ AST_MATCHER_P(CXXMethodDecl, ofClass, InnerMatcher.matches(*Parent, Finder, Builder)); } -/// \brief Matches each method overriden by the given method. This matcher may +/// \brief Matches each method overridden by the given method. This matcher may /// produce multiple matches. /// /// Given diff --git a/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h b/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h index 38e6205fc39..49031010a75 100644 --- a/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h +++ b/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h @@ -32,7 +32,7 @@ namespace til { // Defines an interface used to traverse SExprs. Traversals have been made as // generic as possible, and are intended to handle any kind of pass over the -// AST, e.g. visiters, copying, non-destructive rewriting, destructive +// AST, e.g. visitors, copying, non-destructive rewriting, destructive // (in-place) rewriting, hashing, typing, etc. // // Traversals implement the functional notion of a "fold" operation on SExprs. diff --git a/clang/include/clang/Analysis/CloneDetection.h b/clang/include/clang/Analysis/CloneDetection.h index 5ef44570186..955777a11a6 100644 --- a/clang/include/clang/Analysis/CloneDetection.h +++ b/clang/include/clang/Analysis/CloneDetection.h @@ -161,7 +161,7 @@ public: /// The result of findClones can be further constrained with the constrainClones /// method. /// -/// This class only searches for clones in exectuable source code +/// This class only searches for clones in executable source code /// (e.g. function bodies). Other clones (e.g. cloned comments or declarations) /// are not supported. class CloneDetector { diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index afbfd04e207..228a1aadfd2 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -2661,7 +2661,7 @@ def LoopHint : Attr { /// vectorize: vectorizes loop operations if State == Enable. /// vectorize_width: vectorize loop operations with width 'Value'. /// interleave: interleave multiple loop iterations if State == Enable. - /// interleave_count: interleaves 'Value' loop interations. + /// interleave_count: interleaves 'Value' loop iterations. /// unroll: fully unroll loop if State == Enable. /// unroll_count: unrolls loop 'Value' times. /// distribute: attempt to distribute loop if State == Enable diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index 03300b85f83..6df0ffe26fa 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -2798,7 +2798,7 @@ def NoThrowDocs : Documentation { let Category = DocCatFunction; let Content = [{ Clang supports the GNU style ``__attribute__((nothrow))`` and Microsoft style -``__declspec(nothrow)`` attribute as an equivilent of `noexcept` on function +``__declspec(nothrow)`` attribute as an equivalent of `noexcept` on function declarations. This attribute informs the compiler that the annotated function does not throw an exception. This prevents exception-unwinding. This attribute is particularly useful on functions in the C Standard Library that are @@ -3110,7 +3110,7 @@ the ability to distinguish between different versions of the same entity but with different ABI versions supported. For example, a newer version of a class could have a different set of data members and thus have a different size. Using the ``abi_tag`` attribute, it is possible to have different mangled names for -a global variable of the class type. Therefor, the old code could keep using +a global variable of the class type. Therefore, the old code could keep using the old manged name and the new code will use the new mangled name with tags. }]; } diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 06ae1b7a2a9..d8f478b29f0 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -751,7 +751,7 @@ def note_pragma_pack_pop_instead_reset : Note< "did you intend to use '#pragma pack (pop)' instead of '#pragma pack()'?">; // Follow the Microsoft implementation. def warn_pragma_pack_show : Warning<"value of #pragma pack(show) == %0">; -def warn_pragma_pack_pop_identifer_and_alignment : Warning< +def warn_pragma_pack_pop_identifier_and_alignment : Warning< "specifying both a name and alignment to 'pop' is undefined">; def warn_pragma_pop_failed : Warning<"#pragma %0(pop, ...) failed: %1">, InGroup<IgnoredPragmas>; diff --git a/clang/include/clang/Basic/Version.h b/clang/include/clang/Basic/Version.h index 57dcf92c3b2..aec5f99087b 100644 --- a/clang/include/clang/Basic/Version.h +++ b/clang/include/clang/Basic/Version.h @@ -30,11 +30,11 @@ namespace clang { /// This supports LLVM residing in a separate repository from clang. std::string getLLVMRepositoryPath(); - /// \brief Retrieves the repository revision number (or identifer) from which + /// \brief Retrieves the repository revision number (or identifier) from which /// this Clang was built. std::string getClangRevision(); - /// \brief Retrieves the repository revision number (or identifer) from which + /// \brief Retrieves the repository revision number (or identifier) from which /// LLVM was built. /// /// If Clang and LLVM are in the same repository, this returns the same diff --git a/clang/include/clang/CodeGen/ConstantInitBuilder.h b/clang/include/clang/CodeGen/ConstantInitBuilder.h index d1388f0c51b..f2e78adb8ce 100644 --- a/clang/include/clang/CodeGen/ConstantInitBuilder.h +++ b/clang/include/clang/CodeGen/ConstantInitBuilder.h @@ -266,7 +266,7 @@ public: /// (2) finishing the entire builder. /// /// This is useful for emitting certain kinds of structure which - /// contain some sort of summary field, generaly a count, before any + /// contain some sort of summary field, generally a count, before any /// of the data. By emitting a placeholder first, the structure can /// be emitted eagerly. PlaceholderPosition addPlaceholder() { diff --git a/clang/include/clang/Driver/Multilib.h b/clang/include/clang/Driver/Multilib.h index d148fadccd8..7cbdf1a5928 100644 --- a/clang/include/clang/Driver/Multilib.h +++ b/clang/include/clang/Driver/Multilib.h @@ -150,7 +150,7 @@ public: /// Union this set of multilibs with another void combineWith(const MultilibSet &MS); - /// Remove all of thie multilibs from the set + /// Remove all of the multilibs from the set void clear() { Multilibs.clear(); } iterator begin() { return Multilibs.begin(); } diff --git a/clang/include/clang/Frontend/ASTUnit.h b/clang/include/clang/Frontend/ASTUnit.h index 49c0da44dde..e8155a60ee4 100644 --- a/clang/include/clang/Frontend/ASTUnit.h +++ b/clang/include/clang/Frontend/ASTUnit.h @@ -210,7 +210,7 @@ private: /// /// Cache contains only source locations from preamble so it is /// guaranteed that they stay valid when the SourceManager is recreated. - /// This cache is used when loading preambule to increase performance + /// This cache is used when loading preamble to increase performance /// of that loading. It must be cleared when preamble is recreated. llvm::StringMap<SourceLocation> PreambleSrcLocCache; diff --git a/clang/include/clang/Frontend/PrecompiledPreamble.h b/clang/include/clang/Frontend/PrecompiledPreamble.h index aa8fb82f340..f776b523d00 100644 --- a/clang/include/clang/Frontend/PrecompiledPreamble.h +++ b/clang/include/clang/Frontend/PrecompiledPreamble.h @@ -107,7 +107,7 @@ public: /// Requires that CanReuse() is true. /// For in-memory preambles, PrecompiledPreamble instance continues to own the /// MemoryBuffer with the Preamble after this method returns. The caller is - /// reponsible for making sure the PrecompiledPreamble instance outlives the + /// responsible for making sure the PrecompiledPreamble instance outlives the /// compiler run and the AST that will be using the PCH. void AddImplicitPreamble(CompilerInvocation &CI, IntrusiveRefCntPtr<vfs::FileSystem> &VFS, diff --git a/clang/include/clang/Lex/HeaderSearch.h b/clang/include/clang/Lex/HeaderSearch.h index 4e8d9cba705..6ba9c66fc36 100644 --- a/clang/include/clang/Lex/HeaderSearch.h +++ b/clang/include/clang/Lex/HeaderSearch.h @@ -277,7 +277,7 @@ public: unsigned angledDirIdx, unsigned systemDirIdx, bool noCurDirSearch) { assert(angledDirIdx <= systemDirIdx && systemDirIdx <= dirs.size() && - "Directory indicies are unordered"); + "Directory indices are unordered"); SearchDirs = dirs; AngledDirIdx = angledDirIdx; SystemDirIdx = systemDirIdx; diff --git a/clang/include/clang/Lex/ModuleMap.h b/clang/include/clang/Lex/ModuleMap.h index b4ca3209627..8593fcd8b12 100644 --- a/clang/include/clang/Lex/ModuleMap.h +++ b/clang/include/clang/Lex/ModuleMap.h @@ -199,7 +199,7 @@ private: llvm::DenseMap<const DirectoryEntry *, Module *> UmbrellaDirs; /// \brief A generation counter that is used to test whether modules of the - /// same name may shadow or are illegal redefintions. + /// same name may shadow or are illegal redefinitions. /// /// Modules from earlier scopes may shadow modules from later ones. /// Modules from the same scope may not have the same name. diff --git a/clang/include/clang/Lex/TokenLexer.h b/clang/include/clang/Lex/TokenLexer.h index b8b0beabf2b..dccaef9d38c 100644 --- a/clang/include/clang/Lex/TokenLexer.h +++ b/clang/include/clang/Lex/TokenLexer.h @@ -198,7 +198,7 @@ private: /// the tokens just expanded through __VA_OPT__ processing. These (sub) /// sequence of tokens are folded into one stringified token. /// - /// \param[in] VCtx - contains relevent contextual information about the + /// \param[in] VCtx - contains relevant contextual information about the /// state of the tokens around and including the __VA_OPT__ token, necessary /// for stringification. void stringifyVAOPTContents(SmallVectorImpl<Token> &ReplacementToks, diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h index 0df9f3f7427..619b56363f4 100644 --- a/clang/include/clang/Parse/Parser.h +++ b/clang/include/clang/Parse/Parser.h @@ -1097,7 +1097,7 @@ private: /// \brief Whether this member function had an associated template /// scope. When true, D is a template declaration. - /// othewise, it is a member function declaration. + /// otherwise, it is a member function declaration. bool TemplateScope; /// DefaultArgs - Contains the parameters of the function and @@ -1153,7 +1153,7 @@ private: /// \brief Whether this class had an associated template /// scope. When true, TagOrTemplate is a template declaration; - /// othewise, it is a tag declaration. + /// otherwise, it is a tag declaration. bool TemplateScope : 1; /// \brief Whether this class is an __interface. diff --git a/clang/include/clang/Sema/AttributeList.h b/clang/include/clang/Sema/AttributeList.h index 6b5bb1f9011..4508d4466b8 100644 --- a/clang/include/clang/Sema/AttributeList.h +++ b/clang/include/clang/Sema/AttributeList.h @@ -322,7 +322,7 @@ private: } /// Type tag information is stored immediately following the arguments, if - /// any, at the end of the object. They are mutually exlusive with + /// any, at the end of the object. They are mutually exclusive with /// availability slots. TypeTagForDatatypeData &getTypeTagForDatatypeDataSlot() { return *reinterpret_cast<TypeTagForDatatypeData*>(getArgsBuffer()+NumArgs); diff --git a/clang/include/clang/Sema/TypoCorrection.h b/clang/include/clang/Sema/TypoCorrection.h index a5cd5f924b7..a2e0d2f421b 100644 --- a/clang/include/clang/Sema/TypoCorrection.h +++ b/clang/include/clang/Sema/TypoCorrection.h @@ -291,9 +291,9 @@ public: /// \brief Simple predicate used by the default RankCandidate to /// determine whether to return an edit distance of 0 or InvalidDistance. - /// This can be overrided by validators that only need to determine if a + /// This can be overridden by validators that only need to determine if a /// candidate is viable, without ranking potentially viable candidates. - /// Only ValidateCandidate or RankCandidate need to be overriden by a + /// Only ValidateCandidate or RankCandidate need to be overridden by a /// callback wishing to check the viability of correction candidates. /// The default predicate always returns true if the candidate is not a type /// name or keyword, true for types if WantTypeSpecifiers is true, and true diff --git a/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index e8a918e225d..17c5c59bccb 100644 --- a/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -367,7 +367,7 @@ public: /// specified. /// @param [in] C The optional checker parameter that can be used to restrict /// the search to the options of this particular checker (and its parents - /// dependening on search mode). + /// depending on search mode). /// @param [in] SearchInParents If set to true and the searched option was not /// specified for the given checker the options for the parent packages will /// be searched as well. The inner packages take precedence over the outer @@ -385,7 +385,7 @@ public: /// specified. /// @param [in] C The optional checker parameter that can be used to restrict /// the search to the options of this particular checker (and its parents - /// dependening on search mode). + /// depending on search mode). /// @param [in] SearchInParents If set to true and the searched option was not /// specified for the given checker the options for the parent packages will /// be searched as well. The inner packages take precedence over the outer @@ -402,7 +402,7 @@ public: /// specified. /// @param [in] C The optional checker parameter that can be used to restrict /// the search to the options of this particular checker (and its parents - /// dependening on search mode). + /// depending on search mode). /// @param [in] SearchInParents If set to true and the searched option was not /// specified for the given checker the options for the parent packages will /// be searched as well. The inner packages take precedence over the outer @@ -419,7 +419,7 @@ public: /// specified. /// @param [in] C The optional checker parameter that can be used to restrict /// the search to the options of this particular checker (and its parents - /// dependening on search mode). + /// depending on search mode). /// @param [in] SearchInParents If set to true and the searched option was not /// specified for the given checker the options for the parent packages will /// be searched as well. The inner packages take precedence over the outer diff --git a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h index d3163ef3e57..c723f31aec2 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h +++ b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h @@ -1,4 +1,4 @@ -//===--- BugType.h - Bug Information Desciption ----------------*- C++ -*-===// +//===--- BugType.h - Bug Information Description ---------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index 5e7b3ef6476..5e4cb1b3314 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -90,7 +90,7 @@ public: /// @param FuncName The name of the function that will be matched. /// /// @param RequiredArgs The number of arguments that is expected to match a - /// call. Omit this parameter to match every occurance of call with a given + /// call. Omit this parameter to match every occurrence of call with a given /// name regardless the number of arguments. CallDescription(StringRef FuncName, unsigned RequiredArgs = NoArgRequirement) : FuncName(FuncName), RequiredArgs(RequiredArgs) {} diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h index 6d479d6b01a..8f967f7aa62 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h @@ -241,7 +241,7 @@ protected: /// the builder dies. ExplodedNodeSet &Frontier; - /// Checkes if the results are ready. + /// Checks if the results are ready. virtual bool checkResults() { return Finalized; } diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h index 0f507fde23a..44f258b991c 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h @@ -510,7 +510,7 @@ private: /// \brief Value representing pointer-to-member. /// /// This value is qualified as NonLoc because neither loading nor storing -/// operations are aplied to it. Instead, the analyzer uses the L-value coming +/// operations are applied to it. Instead, the analyzer uses the L-value coming /// from pointer-to-member applied to an object. /// This SVal is represented by a DeclaratorDecl which can be a member function /// pointer or a member data pointer and a list of CXXBaseSpecifiers. This list diff --git a/clang/include/clang/Tooling/FileMatchTrie.h b/clang/include/clang/Tooling/FileMatchTrie.h index 74f30d9574a..0fbf8f6b689 100644 --- a/clang/include/clang/Tooling/FileMatchTrie.h +++ b/clang/include/clang/Tooling/FileMatchTrie.h @@ -72,7 +72,7 @@ public: /// /// Returns file name stored in this trie that is equivalent to 'FileName' /// according to 'Comparator', if it can be uniquely identified. If there - /// are no matches an empty \c StringRef is returned. If there are ambigious + /// are no matches an empty \c StringRef is returned. If there are ambiguous /// matches, an empty \c StringRef is returned and a corresponding message /// written to 'Error'. StringRef findEquivalent(StringRef FileName, diff --git a/clang/include/clang/Tooling/Refactoring/RefactoringActionRule.h b/clang/include/clang/Tooling/Refactoring/RefactoringActionRule.h index 4130e29d8de..ce4a91cbbad 100644 --- a/clang/include/clang/Tooling/Refactoring/RefactoringActionRule.h +++ b/clang/include/clang/Tooling/Refactoring/RefactoringActionRule.h @@ -56,7 +56,7 @@ public: class RefactoringActionRule : public RefactoringActionRuleBase { public: /// Returns true when the rule has a source selection requirement that has - /// to be fullfilled before refactoring can be performed. + /// to be fulfilled before refactoring can be performed. virtual bool hasSelectionRequirement() = 0; /// Traverses each refactoring option used by the rule and invokes the diff --git a/clang/include/clang/Tooling/Refactoring/RefactoringResultConsumer.h b/clang/include/clang/Tooling/Refactoring/RefactoringResultConsumer.h index fe7738e7349..005eb877bf0 100644 --- a/clang/include/clang/Tooling/Refactoring/RefactoringResultConsumer.h +++ b/clang/include/clang/Tooling/Refactoring/RefactoringResultConsumer.h @@ -26,8 +26,8 @@ class RefactoringResultConsumer { public: virtual ~RefactoringResultConsumer() {} - /// Handles an initation or an invication error. An initiation error typically - /// has a \c DiagnosticError payload that describes why initation failed. + /// Handles an initiation or an invication error. An initiation error typically + /// has a \c DiagnosticError payload that describes why initiation failed. virtual void handleError(llvm::Error Err) = 0; /// Handles the source replacements that are produced by a refactoring action. diff --git a/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h b/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h index d32ed642b08..0adc5ead738 100644 --- a/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h +++ b/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h @@ -82,7 +82,7 @@ private: Expected<AtomicChanges> createSourceReplacements(RefactoringRuleContext &Context) override; - // A NamedDecl which indentifies the symbol being renamed. + // A NamedDecl which identifies the symbol being renamed. const NamedDecl *ND; // The new qualified name to change the symbol to. std::string NewQualifiedName; diff --git a/clang/include/clang/Tooling/Refactoring/Rename/SymbolName.h b/clang/include/clang/Tooling/Refactoring/Rename/SymbolName.h index e69d2908b5d..42e0a5cb669 100644 --- a/clang/include/clang/Tooling/Refactoring/Rename/SymbolName.h +++ b/clang/include/clang/Tooling/Refactoring/Rename/SymbolName.h @@ -21,7 +21,7 @@ namespace tooling { /// A name of a symbol. /// /// Symbol's name can be composed of multiple strings. For example, Objective-C -/// methods can contain multiple argument lables: +/// methods can contain multiple argument labels: /// /// \code /// - (void) myMethodNamePiece: (int)x anotherNamePieces:(int)y; diff --git a/clang/include/clang/Tooling/Tooling.h b/clang/include/clang/Tooling/Tooling.h index 24b4a2edf93..781691218c1 100644 --- a/clang/include/clang/Tooling/Tooling.h +++ b/clang/include/clang/Tooling/Tooling.h @@ -339,7 +339,7 @@ public: /// /// \param Action Tool action. /// - /// \returns 0 on success; 1 if any error occured; 2 if there is no error but + /// \returns 0 on success; 1 if any error occurred; 2 if there is no error but /// some files are skipped due to missing compile commands. int run(ToolAction *Action); |

