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)
commitf85a9b06b826f1081f121156def4fb3ab9aa6ac3
tree1791f774202ea5b813d6f533da66b29aea2b99c8
parent303e2f1eac90bf1be2eb9255411107b5ffb8a475
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.

llvm-svn: 286520
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaType.cpp
clang/test/SemaObjCXX/Inputs/nullability-consistency-arrays.h [new file with mode: 0644]
clang/test/SemaObjCXX/nullability-consistency-arrays.mm [new file with mode: 0644]