[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
Showing
- include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 10 additions, 5 deletionsinclude/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
- lib/StaticAnalyzer/Core/CallEvent.cpp 29 additions, 6 deletionslib/StaticAnalyzer/Core/CallEvent.cpp
- test/Analysis/const-method-call.cpp 230 additions, 0 deletionstest/Analysis/const-method-call.cpp
Loading
Please register or sign in to comment