diff options
| author | Ted Kremenek <kremenek@apple.com> | 2011-08-18 01:17:05 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2011-08-18 01:17:05 +0000 |
| commit | 66bfc1db1438b2399b150820295134f8ca5b76c5 (patch) | |
| tree | cffec9939fd33f992cb894eb812c702d12290a73 /clang/docs | |
| parent | fbbdcedc2e61ca190a47987a9b5a233dd3d06808 (diff) | |
| download | bcm5719-llvm-66bfc1db1438b2399b150820295134f8ca5b76c5.tar.gz bcm5719-llvm-66bfc1db1438b2399b150820295134f8ca5b76c5.zip | |
Add documentation on -Weverything.
llvm-svn: 137911
Diffstat (limited to 'clang/docs')
| -rw-r--r-- | clang/docs/UsersManual.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.html b/clang/docs/UsersManual.html index 639892714ef..4bf550d7774 100644 --- a/clang/docs/UsersManual.html +++ b/clang/docs/UsersManual.html @@ -39,6 +39,7 @@ td { <li><a href="#diagnostics_categories">Diagnostic Categories</a></li> <li><a href="#diagnostics_commandline">Controlling Diagnostics via Command Line Flags</a></li> <li><a href="#diagnostics_pragmas">Controlling Diagnostics via Pragmas</a></li> + <li><a href="#diagnostics_enable_everything">Enabling All Warnings</a></li> <li><a href="#analyzer_diagnositics">Controlling Static Analyzer Diagnostics</a></li> </ul> </li> @@ -626,6 +627,16 @@ GCC do not support the exact same set of warnings, so even when using GCC compatible #pragmas there is no guarantee that they will have identical behaviour on both compilers. </p> +<h4 id="diagnostics_enable_everything">Enabling All Warnings</h4> + +<p>In addition to the traditional <tt>-W</tt> flags, one can enable <b>all</b> + warnings by passing <tt>-Weverything</tt>. + This works as expected with <tt>-Werror</tt>, + and also includes the warnings from <tt>-pedantic</tt>.</p> + +<p>Note that when combined with <tt>-w</tt> (which disables all warnings), that + flag wins.</p> + <h4 id="analyzer_diagnositics">Controlling Static Analyzer Diagnostics</h4> <p>While not strictly part of the compiler, the diagnostics from Clang's <a |

