[PATCH] D60453: ClangTidy: Avoid mixing stdout with stderror when dealing with a large number of files.
This revision was automatically updated to reflect the committed changes. Closed by commit rL357994: ClangTidy: Avoid mixing stdout with stderror when dealing with a large number… (authored by Abpostelnicu, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60453/new/ https://reviews.llvm.org/D60453 Files: clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py Index: clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py === --- clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py +++ clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py @@ -172,6 +172,7 @@ with lock: sys.stdout.write(' '.join(invocation) + '\n' + output.decode('utf-8') + '\n') if len(err) > 0: +sys.stdout.flush() sys.stderr.write(err.decode('utf-8') + '\n') queue.task_done() Index: clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py === --- clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py +++ clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py @@ -172,6 +172,7 @@ with lock: sys.stdout.write(' '.join(invocation) + '\n' + output.decode('utf-8') + '\n') if len(err) > 0: +sys.stdout.flush() sys.stderr.write(err.decode('utf-8') + '\n') queue.task_done() ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D60453: ClangTidy: Avoid mixing stdout with stderror when dealing with a large number of files.
JonasToth accepted this revision. JonasToth added a comment. This revision is now accepted and ready to land. How does that happen to be a problem? It feels that `stdout.write` and `stderr.write` should be unconnected? (if you know the reason I would like to know it too :)) Please note, that `run-clang-tidy` has an export-feature for the diagnostics and fix-its which might make it easier to analyze the output of clang-tidy. I suppose you verified the fix already, then LGTM Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60453/new/ https://reviews.llvm.org/D60453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D60453: ClangTidy: Avoid mixing stdout with stderror when dealing with a large number of files.
Abpostelnicu created this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D60453 Files: clang-tidy/tool/run-clang-tidy.py Index: clang-tidy/tool/run-clang-tidy.py === --- clang-tidy/tool/run-clang-tidy.py +++ clang-tidy/tool/run-clang-tidy.py @@ -172,6 +172,7 @@ with lock: sys.stdout.write(' '.join(invocation) + '\n' + output.decode('utf-8') + '\n') if len(err) > 0: +sys.stdout.flush() sys.stderr.write(err.decode('utf-8') + '\n') queue.task_done() Index: clang-tidy/tool/run-clang-tidy.py === --- clang-tidy/tool/run-clang-tidy.py +++ clang-tidy/tool/run-clang-tidy.py @@ -172,6 +172,7 @@ with lock: sys.stdout.write(' '.join(invocation) + '\n' + output.decode('utf-8') + '\n') if len(err) > 0: +sys.stdout.flush() sys.stderr.write(err.decode('utf-8') + '\n') queue.task_done() ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits