From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- clang/lib/Tooling/Core/Replacement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Tooling/Core/Replacement.cpp') diff --git a/clang/lib/Tooling/Core/Replacement.cpp b/clang/lib/Tooling/Core/Replacement.cpp index aca2afceea44..020ad08a65e7 100644 --- a/clang/lib/Tooling/Core/Replacement.cpp +++ b/clang/lib/Tooling/Core/Replacement.cpp @@ -270,7 +270,7 @@ llvm::Error Replacements::add(const Replacement &R) { assert(R.getLength() == 0); // `I` is also an insertion, `R` and `I` conflict. if (I->getLength() == 0) { - // Check if two insertions are order-indepedent: if inserting them in + // Check if two insertions are order-independent: if inserting them in // either order produces the same text, they are order-independent. if ((R.getReplacementText() + I->getReplacementText()).str() != (I->getReplacementText() + R.getReplacementText()).str()) @@ -319,7 +319,7 @@ llvm::Error Replacements::add(const Replacement &R) { Replaces.insert(R); } else { // `I` overlaps with `R`. We need to check `R` against all overlapping - // replacements to see if they are order-indepedent. If they are, merge `R` + // replacements to see if they are order-independent. If they are, merge `R` // with them and replace them with the merged replacements. auto MergeBegin = I; auto MergeEnd = std::next(I); -- cgit v1.2.3