]> granicus.if.org Git - clang/commitdiff
Fix 'declartion' typos
authorAlp Toker <alp@nuanti.com>
Sun, 5 Jan 2014 06:38:57 +0000 (06:38 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 5 Jan 2014 06:38:57 +0000 (06:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198549 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp
test/SemaCXX/MicrosoftCompatibility.cpp
unittests/ASTMatchers/ASTMatchersTest.cpp

index 607c37ac03fc4f4019a58400842b8a60a293839f..793337cc5ad081539af9c1ff19636078afe0f702 100644 (file)
@@ -2530,8 +2530,8 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, Decl *OldD, Scope *S,
       NewMethod->setTrivial(OldMethod->isTrivial());
 
       // MSVC allows explicit template specialization at class scope:
-      // 2 CXMethodDecls referring to the same function will be injected.
-      // We don't want a redeclartion error.
+      // 2 CXXMethodDecls referring to the same function will be injected.
+      // We don't want a redeclaration error.
       bool IsClassScopeExplicitSpecialization =
                               OldMethod->isFunctionTemplateSpecialization() &&
                               NewMethod->isFunctionTemplateSpecialization();
index 3097b7da107e2593f373937b3a0f95fca9b91f8d..a914169bb6838be6389cee7049a5576acf7006dc 100644 (file)
@@ -22,7 +22,7 @@ void test()
 
 
 namespace ms_predefined_types {
-  // ::type_info is predeclared with forward class declartion
+  // ::type_info is a built-in forward class declaration.
   void f(const type_info &a);
 }
 
index cc13c01fec39eedbbe8691f5fa4c90f7921c948a..e042d54a9a0821aff129fb5748a7b7cf197661f6 100644 (file)
@@ -1479,7 +1479,7 @@ TEST(HasAnyParameter, DoesNotMatchThisPointer) {
           recordDecl(hasName("X"))))))));
 }
 
-TEST(HasName, MatchesParameterVariableDeclartions) {
+TEST(HasName, MatchesParameterVariableDeclarations) {
   EXPECT_TRUE(matches("class Y {}; class X { void x(int x) {} };",
       methodDecl(hasAnyParameter(hasName("x")))));
   EXPECT_TRUE(notMatches("class Y {}; class X { void x(int) {} };",