[PATCH] D93701: [clang][cli] NFC: Make Diags optional in normalizer

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 5 08:24:40 PST 2021


jansvoboda11 added a comment.

In D93701#2477239 <https://reviews.llvm.org/D93701#2477239>, @jansvoboda11 wrote:

> Another solution would be to create a "dummy" `DiagnosticsEngine` for the `ParseDiagnosticArgs` calls, but I didn't find a way to do that.

Something like `CompilerInstance::createDiagnostics(new DiagnosticOptions(), new IgnoreDiagnostics())` could work. I'll give that a try.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93701/new/

https://reviews.llvm.org/D93701



More information about the cfe-commits mailing list