]> granicus.if.org Git - clang/commit
Add -Wnullability-completeness-on-arrays.
authorJordan Rose <jordan_rose@apple.com>
Thu, 10 Nov 2016 23:28:26 +0000 (23:28 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 10 Nov 2016 23:28:26 +0000 (23:28 +0000)
commite4c8953a90d27b73ed374cc11de694deb7801c20
tree703b9cd117b68058efeb9e7f5d99183dcb9ee14c
parentb0eb2871c6471b7f99a3d8a25300fb57bb266804
Add -Wnullability-completeness-on-arrays.

This is an addition to (and sub-warning of) -Wnullability-completeness
that warns when an array parameter is missing nullability. When the
specific warning is switched off, the compiler falls back to only
warning on pointer types written as pointer types.

Note that use of nullability /within/ an array triggers the
completeness checks regardless of whether or not the array-specific
warning is enabled; the intent there is simply to determine whether a
particular header is trying to be nullability-aware at all.

Part of rdar://problem/25846421.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286520 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/SemaObjCXX/Inputs/nullability-consistency-arrays.h [new file with mode: 0644]
test/SemaObjCXX/nullability-consistency-arrays.mm [new file with mode: 0644]