Using DiagnosticEngine in tool

It appears that I can’t use the DiagnosticEngine in a tool, as the DiagnosticIDs class statically defines all the IDs, right?

Otherwise, could someone point me to info on doing it?

Thanks.

-John

Use DiagnosticsEngine::getCustomDiagID.

– Sean Silva

Use DiagnosticsEngine::getCustomDiagID.

<
http://clang.llvm.org/doxygen/classclang_1_1DiagnosticsEngine.html#affbb3c2700bd507e1670a12aa38b554d

-- Sean Silva