summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/unittests/Format/CleanupTest.cpp2
-rw-r--r--clang/unittests/Rename/RenameMemberTest.cpp2
-rw-r--r--clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp4
-rw-r--r--clang/unittests/Tooling/RefactoringActionRulesTest.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/clang/unittests/Format/CleanupTest.cpp b/clang/unittests/Format/CleanupTest.cpp
index 708fdf89689..032cc441ca2 100644
--- a/clang/unittests/Format/CleanupTest.cpp
+++ b/clang/unittests/Format/CleanupTest.cpp
@@ -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"
diff --git a/clang/unittests/Rename/RenameMemberTest.cpp b/clang/unittests/Rename/RenameMemberTest.cpp
index 463f7c70def..fb8d5580fb4 100644
--- a/clang/unittests/Rename/RenameMemberTest.cpp
+++ b/clang/unittests/Rename/RenameMemberTest.cpp
@@ -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"},
diff --git a/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp b/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp
index 891c88da302..cd2289d4f28 100644
--- a/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp
+++ b/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp
@@ -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
diff --git a/clang/unittests/Tooling/RefactoringActionRulesTest.cpp b/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
index f0b6466fec4..e9a12deb3f0 100644
--- a/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
+++ b/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
@@ -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 =
OpenPOWER on IntegriCloud