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

Roman Popov via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 1 12:10:46 PST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180201/a5900bd7/attachment.html>


More information about the cfe-dev mailing list