]> granicus.if.org Git - clang/commitdiff
Unittests misc. typos
authorSylvestre Ledru <sylvestre@debian.org>
Tue, 6 Feb 2018 13:12:29 +0000 (13:12 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 6 Feb 2018 13:12:29 +0000 (13:12 +0000)
By luz.paz

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324342 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/CleanupTest.cpp
unittests/Rename/RenameMemberTest.cpp
unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp
unittests/Tooling/RefactoringActionRulesTest.cpp

index 708fdf896890c9c5ab678db4e829be5a7eb8840c..032cc441ca28b0a8757bf4afea2b5c631281bb4a 100644 (file)
@@ -496,7 +496,7 @@ TEST_F(CleanUpReplacementsTest, InsertNewSystemIncludeGoogleStyle) {
                      "#include \"y/a.h\"\n"
                      "#include \"z/b.h\"\n";
   // FIXME: inserting after the empty line following the main header might be
-  // prefered.
+  // preferred.
   std::string Expected = "#include \"x/fix.h\"\n"
                          "#include <vector>\n"
                          "\n"
index 463f7c70def724c3484abef4eb17b187c2dd5e02..fb8d5580fb40fc1caf42670c0832fb7f86d6df95 100644 (file)
@@ -139,7 +139,7 @@ INSTANTIATE_TEST_CASE_P(
          "void f() { auto p = &ns::C::SBar<int>; }", "ns::C::SFoo",
          "ns::C::SBar"},
 
-        // These methods are not declared or overrided in the subclass B, we
+        // These methods are not declared or overridden in the subclass B, we
         // have to use the qualified name with parent class A to identify them.
         {"void f() { auto p = &ns::B::Foo; }",
          "void f() { auto p = &ns::B::Bar; }", "ns::A::Foo", "ns::B::Bar"},
index 891c88da302e3758418d099824376faa5965513c..cd2289d4f28b3a1991fa587a4343f2eb917769ad 100644 (file)
@@ -53,9 +53,9 @@ TEST(StaticAnalyzerOptions, SearchInParentPackageTests) {
   // search mode.
   CheckerOneMock CheckerOne;
   EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne));
-  // The package option is overriden with a checker option.
+  // The package option is overridden with a checker option.
   EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne, true));
-  // The Outer package option is overriden by the Inner package option. No
+  // The Outer package option is overridden by the Inner package option. No
   // package option is specified.
   EXPECT_TRUE(Opts.getBooleanOption("Option2", false, &CheckerOne, true));
   // No package option is specified and search in packages is turned off. The
index f0b6466fec468f10cf490f3dd7de953185fe9ad7..e9a12deb3f0ed9d8d16dfce6da7901f40272c649 100644 (file)
@@ -97,7 +97,7 @@ TEST_F(RefactoringActionRulesTest, MyFirstRefactoringRule) {
   auto Rule =
       createRefactoringActionRule<ReplaceAWithB>(SelectionRequirement());
 
-  // When the requirements are satisifed, the rule's function must be invoked.
+  // When the requirements are satisfied, the rule's function must be invoked.
   {
     RefactoringRuleContext RefContext(Context.Sources);
     SourceLocation Cursor =