summaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-03-13 17:55:39 +0000
committerJordan Rose <jordan_rose@apple.com>2014-03-13 17:55:39 +0000
commit601e611a9a41d6adf625d3868d8976bec9a3a478 (patch)
treeb7276276b4c3ad30811449ffe128f53a0ef5905d /test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap
parente9e159fc47866e29a4790021d67b99f540d0f42c (diff)
downloadclang-601e611a9a41d6adf625d3868d8976bec9a3a478.tar.gz
clang-601e611a9a41d6adf625d3868d8976bec9a3a478.tar.bz2
clang-601e611a9a41d6adf625d3868d8976bec9a3a478.tar.xz
[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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap')
0 files changed, 0 insertions, 0 deletions