[cfe-commits] r137911 - /cfe/trunk/docs/UsersManual.html
Ted Kremenek
kremenek at apple.com
Wed Aug 17 18:17:05 PDT 2011
Author: kremenek
Date: Wed Aug 17 20:17:05 2011
New Revision: 137911
URL: http://llvm.org/viewvc/llvm-project?rev=137911&view=rev
Log:
Add documentation on -Weverything.
Modified:
cfe/trunk/docs/UsersManual.html
Modified: cfe/trunk/docs/UsersManual.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UsersManual.html?rev=137911&r1=137910&r2=137911&view=diff
==============================================================================
--- cfe/trunk/docs/UsersManual.html (original)
+++ cfe/trunk/docs/UsersManual.html Wed Aug 17 20:17:05 2011
@@ -39,6 +39,7 @@
<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 @@
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
More information about the cfe-commits
mailing list