News for hackers. Stuff that matters.
Re:Clang is better than GCC by gavinray on Sunday November 27, 2022 @08:32PM (#33768843)
While we're talking about Clang errors, here's a neat trick I discovered a few days ago:

LLVM comes bundled with a tool that will show you all the errors/warnings in a nested, hierarchical fashion

Along with being color-coded by whether they're enabled by default, and if they only exist for GCC compatibility.

You can display this by typing:

  $ diagtool tree [optional-warning-level-like-Wall]
See: https://twitter.com/GavinRayDev/status/1593399093820129280

Here's a GIST where I collected some of the more obscure options you may be interested in adding:

https://gist.github.com/GavinRay97/bae1d93925e55ce0a0084946f...

There are no comments on this comment yet.