0

I would like to find out on which clang version were certain warnings/diagnostics added.

https://clang.llvm.org/docs/DiagnosticsReference.html

2 Answers 2

1

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!

Sign up to request clarification or add additional context in comments.

2 Comments

Unfortunately the reference wasn't there before 4.0
File has moved to github.com/llvm/llvm-project/blob/main/clang/include/clang/…, updated link above accordingly
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.