From: Simon Pilgrim Date: Fri, 31 Mar 2017 11:00:53 +0000 (+0000) Subject: Spelling mistakes in comments. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74b9bfcb506db402e77debf36bbcde90c48f24e3;p=clang Spelling mistakes in comments. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299198 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index a88bcf04db..19e23fab5a 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -476,7 +476,7 @@ private: /// entities should not be instrumented. std::unique_ptr SanitizerBL; - /// \brief Function filtering mehcanism to determine whether a given function + /// \brief Function filtering mechanism to determine whether a given function /// should be imbued with the XRay "always" or "never" attributes. std::unique_ptr XRayFilter; diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 9aaba17f65..ad723a3e2b 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -838,7 +838,7 @@ protected: /// Describes the kind of default argument for this parameter. By default /// this is none. If this is normal, then the default argument is stored in - /// the \c VarDecl initializer expression unless we were unble to parse + /// the \c VarDecl initializer expression unless we were unable to parse /// (even an invalid) expression for the default argument. unsigned DefaultArgKind : 2; diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index f5dd9b68a6..d2bec39092 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -7453,7 +7453,7 @@ CheckReturnStackAddr(Sema &S, Expr *RetValExp, QualType lhsType, if (!stackE) return; // Nothing suspicious was found. - // Parameters are initalized in the calling scope, so taking the address + // Parameters are initialized in the calling scope, so taking the address // of a parameter reference doesn't need a warning. for (auto *DRE : refVars) if (isa(DRE->getDecl()))