]> granicus.if.org Git - clang/commitdiff
Spelling mistakes in comments. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 31 Mar 2017 11:00:53 +0000 (11:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 31 Mar 2017 11:00:53 +0000 (11:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299198 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h
include/clang/AST/Decl.h
lib/Sema/SemaChecking.cpp

index a88bcf04dbe80c371ba52744b5e8bb49ef145b67..19e23fab5a5e681ebfeb62f9f436505f1bde11a0 100644 (file)
@@ -476,7 +476,7 @@ private:
   /// entities should not be instrumented.
   std::unique_ptr<SanitizerBlacklist> 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<XRayFunctionFilter> XRayFilter;
 
index 9aaba17f6593f69a9e2fbf5cbf9649e3100891cc..ad723a3e2b8f0fe44322748455e1f4b020939ad3 100644 (file)
@@ -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;
 
index f5dd9b68a694c49ccb62016080b76a5d2b3f682b..d2bec39092d996cbdd6793fd320182cabdbfac34 100644 (file)
@@ -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<ParmVarDecl>(DRE->getDecl()))