Clang warnings can be mapped to virtual check names as aliases. The mappings can be set in the appropriate ClangTidyModules. If the virtual check is enabled, then
- the corresponding warning options get passed to clang, and
- the warning names are replaced with the check alias in the produced messages.
This is an implementation of the proposal here.
The "clang-diagnostic-" string is now repeated multiple times. Could you pull it out to a constant (or maybe llvm::StringRef getClangDiagnosticPrefix())?