]> granicus.if.org Git - clang/commit
[analyzer] Do not invalidate arguments when the parameter's
authorAnna Zaks <ganna@apple.com>
Tue, 20 Dec 2011 22:35:30 +0000 (22:35 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 20 Dec 2011 22:35:30 +0000 (22:35 +0000)
commit2cbe791d3e9b26f30196c4852da75d9ad67b4ad9
tree0fae159435699e0f6287b60932699a97549cd868
parentb5ea9db3cf47e8d4bc60d922331773dbfd265c6f
[analyzer] Do not invalidate arguments when the parameter's
type is a pointer to const. (radar://10595327)

The regions corresponding to the pointer and reference arguments to
a function get invalidated by the calls since a function call can
possibly modify the pointed to data. With this change, we are not going
to invalidate the data if the argument is a pointer to const. This
change makes the analyzer more optimistic in reporting errors.
(Support for C, C++ and Obj C)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147002 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h
lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
lib/StaticAnalyzer/Core/ObjCMessage.cpp
test/Analysis/method-call-intra-p.cpp [new file with mode: 0644]
test/Analysis/misc-ps.m
test/Analysis/null-deref-ps.c
test/Analysis/string.c
test/Analysis/taint-tester.c