From f391fa7265fbd0aedf70b8bc3fc80e3588cf5c91 Mon Sep 17 00:00:00 2001
From: Ted Kremenek
Date: Thu, 18 Aug 2011 01:17:05 +0000
Subject: [PATCH] Add documentation on -Weverything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137911 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/UsersManual.html | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/UsersManual.html b/docs/UsersManual.html
index 639892714e..4bf550d777 100644
--- a/docs/UsersManual.html
+++ b/docs/UsersManual.html
@@ -39,6 +39,7 @@ td {
Diagnostic Categories
Controlling Diagnostics via Command Line Flags
Controlling Diagnostics via Pragmas
+ Enabling All Warnings
Controlling Static Analyzer Diagnostics
@@ -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.
+Enabling All Warnings
+
+In addition to the traditional -W flags, one can enable all
+ warnings by passing -Weverything.
+ This works as expected with -Werror,
+ and also includes the warnings from -pedantic.
+
+Note that when combined with -w (which disables all warnings), that
+ flag wins.
+
Controlling Static Analyzer Diagnostics
While not strictly part of the compiler, the diagnostics from Clang's