Add the new -Wnull-pointer-arithmetic warnings to the release notes

Differential Revision: https://reviews.llvm.org/D38186

llvm-svn: 314387
This commit is contained in:
Sylvestre Ledru 2017-09-28 08:00:18 +00:00
parent 52b68efdd4
commit a59e654e02
1 changed files with 5 additions and 0 deletions

View File

@ -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
-------------------------------------------------