[Lldb-commits] [clang] [clang-tools-extra] [flang] [lldb] [Clang] Refactor and consolidate color diagnostic handling (PR #202441)

Joseph Huber via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 10 09:26:10 PDT 2026


================
@@ -53,7 +54,8 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags,
 
   Diags.setElideType(Opts.ElideType);
   Diags.setPrintTemplateTree(Opts.ShowTemplateTree);
-  Diags.setShowColors(Opts.ShowColors);
+  Diags.setShowColors(
+      Opts.showColors(llvm::sys::Process::StandardErrHasColors()));
----------------
jhuber6 wrote:

This was the single case I wasn't really sure on, I'll need to double check because the intention was to keep this up to the stream, which would hopefully be the log file in that case.

https://github.com/llvm/llvm-project/pull/202441


More information about the lldb-commits mailing list