Author: sylvestre Date: Thu Sep 28 01:00:18 2017 New Revision: 314387 URL: http://llvm.org/viewvc/llvm-project?rev=314387&view=rev Log: Add the new -Wnull-pointer-arithmetic warnings to the release notes
Differential Revision: https://reviews.llvm.org/D38186 Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ReleaseNotes.rst?rev=314387&r1=314386&r2=314387&view=diff ============================================================================== --- cfe/trunk/docs/ReleaseNotes.rst (original) +++ cfe/trunk/docs/ReleaseNotes.rst Thu Sep 28 01:00:18 2017 @@ -78,6 +78,11 @@ Improvements to Clang's diagnostics when the signed integer is coerced to an unsigned type for the comparison. ``-Wsign-compare`` was adjusted not to warn in this case. +- ``-Wnull-pointer-arithmetic`` now warns about performing pointer arithmetic + on a null pointer. Such pointer arithmetic has an undefined behavior if the + offset is nonzero. It also now warns about arithmetic on a null pointer + treated as a cast from integer to pointer (GNU extension). + Non-comprehensive list of changes in this release ------------------------------------------------- _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits