]> granicus.if.org Git - clang/commitdiff
fix trivial typos in comments; NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Sun, 2 Jul 2017 06:12:49 +0000 (06:12 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Sun, 2 Jul 2017 06:12:49 +0000 (06:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306969 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
test/Sema/warn-documentation.cpp

index 07054546f42f514c9a2c0e35efb1c6c4abf9ffbf..a4610698c46d03a251b0fd0a6eae578833c45e90 100644 (file)
@@ -6650,7 +6650,7 @@ void Parser::ParseTypeofSpecifier(DeclSpec &DS) {
     return;
   }
 
-  // If we get here, the operand to the typeof was an expresion.
+  // If we get here, the operand to the typeof was an expression.
   if (Operand.isInvalid()) {
     DS.SetTypeSpecError();
     return;
index aacb00e8be640eea890a24fcaf15bb250040ed91..44b87af01abd0b9d349f50697d6733906a8bbf3f 100644 (file)
@@ -1866,7 +1866,7 @@ Parser::ParseExprAfterUnaryExprOrTypeTrait(const Token &OpTok,
     }
   }
 
-  // If we get here, the operand to the typeof/sizeof/alignof was an expresion.
+  // If we get here, the operand to the typeof/sizeof/alignof was an expression.
   isCastExpr = false;
   return Operand;
 }
@@ -1972,7 +1972,7 @@ ExprResult Parser::ParseUnaryExprOrTypeTraitExpression() {
   if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof))
     Diag(OpTok, diag::ext_alignof_expr) << OpTok.getIdentifierInfo();
 
-  // If we get here, the operand to the sizeof/alignof was an expresion.
+  // If we get here, the operand to the sizeof/alignof was an expression.
   if (!Operand.isInvalid())
     Operand = Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(),
                                                     ExprKind,
index 0c92b2aa029fe6764ba8eda03d8fe87a99be1e08..ccf374ccd060963083425fbab03918ec0a537e44 100644 (file)
@@ -1186,7 +1186,7 @@ class Predicate
 /// @brief A C++ wrapper class for providing threaded access to a value
 /// of type T.
 ///
-/// A template specilization class.
+/// A template specialization class.
 //----------------------------------------------------------------------
 template<> class Predicate<int, char>
 {