Go to file
Douglas Gregor b4866e85e5 Diagnose unsafe uses of nil and __nonnull pointers.
This generalizes the checking of null arguments to also work with
values of pointer-to-function, reference-to-function, and block
pointer type, using the nullability information within the underling
function prototype to extend non-null checking, and diagnoses returns
of 'nil' within a function with a __nonnull return type.

Note that we don't warn about nil returns from Objective-C methods,
because it's common for Objective-C methods to mimic the nil-swallowing
behavior of the receiver by checking ostensibly non-null parameters
and returning nil from otherwise non-null methods in that
case.

It also diagnoses (via a separate flag) conversions from nullable to
nonnull pointers. It's a separate flag because this warning can be noisy.

llvm-svn: 240153
2015-06-19 18:13:19 +00:00
clang Diagnose unsafe uses of nil and __nonnull pointers. 2015-06-19 18:13:19 +00:00
clang-tools-extra clang-tidy: Remove an unused private field. NFC 2015-06-18 04:15:04 +00:00
compiler-rt CMake: Stop using LLVM's custom parse_arguments. NFC 2015-06-19 03:39:24 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Fix ASAN bot; missing bookkeeping in r240136. 2015-06-19 17:13:59 +00:00
libcxxabi fallback_malloc: silence conversion warning (NFC) 2015-06-03 17:25:35 +00:00
libunwind Code cleanup: Reindent statements. 2015-05-30 14:00:39 +00:00
lld [lld] Allow LLD passes to return error codes. 2015-06-19 17:51:46 +00:00
lldb Fix the lldb build for the EM_486 change. 2015-06-19 17:02:25 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm AMDGPU: Fix filename in comment 2015-06-19 17:56:51 +00:00
openmp Have CMake error out on Windows when user wants OMPT support 2015-06-17 15:43:34 +00:00
polly Add NVIDIA vprintf printing to RuntimeDebugBuilder 2015-06-19 02:33:45 +00:00