================
@@ -360,7 +403,7 @@ IntrusiveRefCntPtr<DiagnosticsEngine> 
CompilerInstance::createDiagnostics(
   if (Client) {
     Diags->setClient(Client, ShouldOwnClient);
   } else if (Opts.getFormat() == DiagnosticOptions::SARIF) {
-    Diags->setClient(new SARIFDiagnosticPrinter(llvm::errs(), Opts));
+    Diags->setClient(new SARIFDiagnosticPrinter("", Opts));
----------------
AaronBallman wrote:

We currently support things like `-o -` to mean "write output to stdout", do we 
want to pass `"-"` instead and support that kind of file name?

https://github.com/llvm/llvm-project/pull/185201
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to