[cfe-dev] User documentation for supported warnings and --analyze mode

Ted Kremenek kremenek at apple.com
Tue Mar 1 14:30:40 PST 2011


If you are comparing between GCC and Clang, are you more interested in static analyzer warnings, or compiler warnings?  The latter is a better apples-to-apples comparison of functionality between the two compilers.

The '--analyze' option is simply a driver hook for activating the static analyzer, which really should be considered an entirely different tool than the compiler itself.

As for documentation on either compiler warnings or static analyzer warnings, that area is severely lacking.  I'm working on documentation on the latter, and I think the goal is to eventually auto-generate the documentation for the compiler warnings, but that work isn't off the ground yet.

On Mar 1, 2011, at 1:08 PM, Mgr. Šimon Tóth wrote:

> We are incorporating Clang in C lectures on Faculty of Informatics at
> Masaryk University as an alternative to GCC.
> 
> Is there any user documentation on the supported warnings and type of
> checks provided by --analyze? Specifically in relation to warnings
> supported by GCC.
> 
> -- 
> Mgr. Simon Toth
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list