[clang-tools-extra] bb0f162 - [clang][tidy] Fix build failure after 07157db

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 5 15:53:10 PST 2023


Author: Jan Svoboda
Date: 2023-12-05T15:52:57-08:00
New Revision: bb0f162b3acfab3146807ab1e01946596d9921f9

URL: https://github.com/llvm/llvm-project/commit/bb0f162b3acfab3146807ab1e01946596d9921f9
DIFF: https://github.com/llvm/llvm-project/commit/bb0f162b3acfab3146807ab1e01946596d9921f9.diff

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

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/ClangTidy.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp
index baee1d205813b..565f044778c94 100644
--- a/clang-tools-extra/clang-tidy/ClangTidy.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp
@@ -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.
@@ -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;
@@ -303,7 +303,7 @@ class ErrorReporter {
 
   struct ReplacementsWithBuildDir {
     StringRef BuildDir;
-    Replacements Replacements;
+    Replacements Replaces;
   };
 
   FileManager Files;


        


More information about the cfe-commits mailing list