[PATCH] D126796: [clang][driver] adds `-print-diagnostics`

Christopher Di Bella via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 1 17:00:11 PDT 2022


cjdb added a comment.

In D126796#3551834 <https://reviews.llvm.org/D126796#3551834>, @tschuett wrote:

> In D126796#3551781 <https://reviews.llvm.org/D126796#3551781>, @cjdb wrote:
>
>> In D126796#3551312 <https://reviews.llvm.org/D126796#3551312>, @tschuett wrote:
>>
>>> Would a JSON dump help you for your tools?
>>
>> Do you think a JSON dump would be more appropriate? I was just going for something not unlike `--help` here.
>
> I thought that you need this for your diagnostics campaign.

Ah, gotcha. The idea for this feature came about while @aaron.ballman was reviewing a draft of that RFC, but it's orthogonal to that. I can't immediately see how users would benefit from this outputting JSON, but open to ideas.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126796



More information about the cfe-commits mailing list