summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2015-06-19 18:27:45 +0000
committerDouglas Gregor <dgregor@apple.com>2015-06-19 18:27:45 +0000
commitbec595a6412104306926278f811fd7a75fd0d25f (patch)
tree93e5b56701b83f396d5c0ac172b15a9cc36fb275 /clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h
parenta59a7211f06a0ba306c4293be19b1b70e8d3ea3e (diff)
downloadbcm5719-llvm-bec595a6412104306926278f811fd7a75fd0d25f.tar.gz
bcm5719-llvm-bec595a6412104306926278f811fd7a75fd0d25f.zip
Check for consistent use of nullability type specifiers in a header.
Adds a new warning (under -Wnullability-completeness) that complains about pointer, block pointer, or member pointer declarations that have not been annotated with nullability information (directly or inferred) within a header that contains some nullability annotations. This is intended to be used to help maintain the completeness of nullability information within a header that has already been audited. Note that, for performance reasons, this warning will underrepresent the number of non-annotated pointers in the case where more than one pointer is seen before the first nullability type specifier, because we're only tracking one piece of information per header. Part of rdar://problem/18868820. llvm-svn: 240158
Diffstat (limited to 'clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h')
-rw-r--r--clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h b/clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h
new file mode 100644
index 00000000000..a0c0d381bb8
--- /dev/null
+++ b/clang/test/SemaObjCXX/Inputs/nullability-consistency-3.h
@@ -0,0 +1 @@
+void double_declarator1(int *__nonnull *); // expected-warning{{pointer is missing a nullability type specifier (__nonnull, __nullable, or __null_unspecified)}}
OpenPOWER on IntegriCloud