[cfe-dev] How to assign a Custom Diagnostic IDs in Clang Tool

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Fri Feb 2 14:55:01 PST 2018


While I don't quite follow your question - you might be interested in this
change I'm working on (well, taken a bit of a break, but will be coming
back to): https://reviews.llvm.org/D41357

On Thu, Feb 1, 2018 at 12:10 PM Roman Popov via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello,
> I want to create a fixed sets of IDs for error messages in Clang tool. So
> I can put them into tool documentation.
>
> Is it possible to somehow assign a fixed ID for diagnostic?
> DiagnosticEngine::getCustomDiagID() generates ID automatically, so I have
> no control on IDs.
>
> Should I probably instantiate my own DiagnosticEngine instead of using
> one from AstContext ?
>
> Thanks,
> Roman
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180202/f515d082/attachment.html>


More information about the cfe-dev mailing list