I would like to find out on which clang version were certain warnings/diagnostics added.
2 Answers
You can check the history of the docs/DiagnosticGroups.rst file for changes from one release to another.
UPD as DiagnosticGroups (previously DiagnosticReference) was introduced only in 2016, previous releases are not reachable with this approach. In order to get the history of each warning the other way, one must parse all include/clang/Basic/Diagnostic*Kinds.td and search for Warning declarations and track their history. LLVM TableGen documentation might be of good use here.
I hope this information is useful!
2 Comments
The github repo pkolbus/compiler-warnings has a per-version list of warnings for clang, gcc and Apple clang, which seems reasonably up to date.