Jordan Rose 821a3a0f77 [analyzer] Warn when passing pointers to const but uninitialized memory.
Passing a pointer to an uninitialized memory buffer is normally okay,
but if the function is declared to take a pointer-to-const then it's
very unlikely it will be modifying the buffer. In this case the analyzer
should warn that there will likely be a read of uninitialized memory.

This doesn't check all elements of an array, only the first one.
It also doesn't yet check Objective-C methods, only C functions and
C++ methods.

This is controlled by a new check: alpha.core.CallAndMessageUnInitRefArg.

Patch by Per Viberg!

llvm-svn: 203822
2014-03-13 17:55:39 +00:00
..
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2013-09-09 21:07:58 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2013-12-08 18:06:52 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00
2012-08-24 20:39:55 +00:00