]> granicus.if.org Git - clang/commitdiff
Add info about Clang diagnostic improvements.
authorRichard Trieu <rtrieu@google.com>
Tue, 3 Dec 2013 01:35:18 +0000 (01:35 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 3 Dec 2013 01:35:18 +0000 (01:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196193 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst

index 3dcca036ebde0f78c25b3b88ac759ce2d49b5e55..a19fd37655acda16946dfcee7ca96406c9f57086 100644 (file)
@@ -62,7 +62,19 @@ Clang's diagnostics are constantly being improved to catch more issues,
 explain them more clearly, and provide more accurate source information
 about them. The improvements since the 3.3 release include:
 
--  ...
+- -Wheader-guard warns on mismatches between the #ifndef and #define lines
+  in a header guard.
+- -Wlogical-not-parentheses warns when a logical not ('!') only applies to the
+  left-hand side of a comparison.  This warning is part of -Wparentheses.
+- Boolean increment, a deprecated feature, has own warning flag
+  -Wdeprecated-increment-bool, and is still part of -Wdeprecated.
+- Clang errors on builtin enum increments and decrements.
+- -Wloop-analysis now warns on for-loops which have the same increment or 
+  decrement in the loop header as the last statement in the loop.
+- -Wuninitialized now performs checking across field initializers to detect
+  when one field in used uninitialized in another field initialization.
+- Clang can detect initializer list use inside a macro and suggest parentheses
+  if possible to fix.
 
 New Compiler Flags
 ------------------