diff options
author | Richard Trieu <rtrieu@google.com> | 2013-12-03 01:35:18 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-12-03 01:35:18 +0000 |
commit | 06907e13ab7602d1fb492d20d702208dfa687054 (patch) | |
tree | 835bf40e2276f6898c33596c68516c6fd425e4b4 /docs | |
parent | a6c1850bcc67f297682115232a9b5ddb2b835541 (diff) | |
download | clang-06907e13ab7602d1fb492d20d702208dfa687054.tar.gz |
Add info about Clang diagnostic improvements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ReleaseNotes.rst | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index 3dcca036eb..a19fd37655 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -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 ------------------ |