<div dir="auto">Probably I'm just thinking in wrong direction. Why do I need to have fixed IDs, instead I should probably have fixed error/warning names?</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 1, 2018 1:12 PM, "Roman Popov" <<a href="mailto:ripopov@gmail.com">ripopov@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Looks like DiagnosticEngine does not allow to be instantiated with User-supplied IDs.<div>The problem is that DiagnosticIDs is not an interface to IDs database, but rather a final class not designed for inheritance.</div><div><br></div><div>So I don't find a way how Clang diagnostic library can be reused by 3rd party tool.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-01 12:10 GMT-08:00 Roman Popov <span dir="ltr"><<a href="mailto:ripopov@gmail.com" target="_blank">ripopov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I want to create a fixed sets of IDs for error messages in Clang tool. So I can put them into tool documentation.</div><div><br></div><div>Is it possible to somehow assign a fixed ID for diagnostic? DiagnosticEngine::getCustomDia<wbr>gID() generates ID automatically, so I have no control on IDs.</div><div><br></div><div>Should I probably instantiate my own <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">DiagnosticEngine instead of using one from AstContext ?</span></div><div><br></div><div>Thanks,</div><div>Roman</div></div>
</blockquote></div><br></div>
</blockquote></div></div>