Skip to content

Commit

Permalink
[clang][tidy] Fix build failure after 07157db
Browse files Browse the repository at this point in the history
  • Loading branch information
jansvoboda11 committed Dec 5, 2023
1 parent 079ca05 commit bb0f162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-tidy/ClangTidy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ErrorReporter {
tooling::Replacement R(FixAbsoluteFilePath, Repl.getOffset(),
Repl.getLength(), Repl.getReplacementText());
auto &Entry = FileReplacements[R.getFilePath()];
Replacements &Replacements = Entry.Replacements;
Replacements &Replacements = Entry.Replaces;
llvm::Error Err = Replacements.add(R);
if (Err) {
// FIXME: Implement better conflict handling.
Expand Down Expand Up @@ -216,7 +216,7 @@ class ErrorReporter {
}
llvm::Expected<tooling::Replacements> Replacements =
format::cleanupAroundReplacements(
Code, FileAndReplacements.second.Replacements, *Style);
Code, FileAndReplacements.second.Replaces, *Style);
if (!Replacements) {
llvm::errs() << llvm::toString(Replacements.takeError()) << "\n";
continue;
Expand Down Expand Up @@ -303,7 +303,7 @@ class ErrorReporter {

struct ReplacementsWithBuildDir {
StringRef BuildDir;
Replacements Replacements;
Replacements Replaces;
};

FileManager Files;
Expand Down

0 comments on commit bb0f162

Please sign in to comment.