[clang][tidy] Fix build failure after 07157db

This commit is contained in:
Jan Svoboda 2023-12-05 15:52:57 -08:00
parent 079ca05eea
commit bb0f162b3a

View File

@ -148,7 +148,7 @@ public:
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.
@ -216,7 +216,7 @@ public:
}
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;
@ -303,7 +303,7 @@ private:
struct ReplacementsWithBuildDir {
StringRef BuildDir;
Replacements Replacements;
Replacements Replaces;
};
FileManager Files;