]> granicus.if.org Git - clang/commit
[analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods...
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 13 Oct 2015 22:20:52 +0000 (22:20 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 13 Oct 2015 22:20:52 +0000 (22:20 +0000)
commit51a1634aff2cfcf6f523a2020d34e82db1722058
treeffd4a6a0feb79109b584cd70efdd14e96aa1559f
parentcfa2e202ee04854fd5533776186b063449a9a1e2
[analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

Prevent invalidation of `this' when a method is const; fixing PR 21606.

A patch by Sean Eveson!

Differential Revision: http://reviews.llvm.org/D13099

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250237 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
lib/StaticAnalyzer/Core/CallEvent.cpp
test/Analysis/const-method-call.cpp [new file with mode: 0644]