ioeric added inline comments.
================ Comment at: clangd/Diagnostics.cpp:299 + D.Severity = + D.Category == "Deprecations" ? DiagnosticsEngine::Note : DiagLevel; return D; ---------------- kadircet wrote: > Couldn't find a better way to check for this one. Category types are coming > from tablegen file > https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/DiagnosticGroups.td#L128 > which does not expose category id, at least I couldn't find even if it does. Have you tried the Diagnostic ID (i.e. `Info.getID()`)? It matches the diag kinds defined in `DiagnosticSemaKinds.inc` (e.g. `warn_deprecated`). Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51747 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits