Skip to content

Commit d7ce6b4

Browse files
authored
[clang-tidy] Fix result check after overwriteChangedFiles() (#86360)
If any return from overwriteChangedFiles is true some fixes were not applied.
1 parent 3f5e649 commit d7ce6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class ErrorReporter {
233233
if (!tooling::applyAllReplacements(Replacements.get(), Rewrite)) {
234234
llvm::errs() << "Can't apply replacements for file " << File << "\n";
235235
}
236-
AnyNotWritten &= Rewrite.overwriteChangedFiles();
236+
AnyNotWritten |= Rewrite.overwriteChangedFiles();
237237
}
238238

239239
if (AnyNotWritten) {

0 commit comments

Comments
 (0)