r298699 - [analyzer] MisusedMovedObject: Remove deprecated callback. NFC
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 24 03:16:08 PDT 2017
Author: dergachev
Date: Fri Mar 24 05:16:08 2017
New Revision: 298699
URL: http://llvm.org/viewvc/llvm-project?rev=298699&view=rev
Log:
[analyzer] MisusedMovedObject: Remove deprecated callback. NFC
wantsRegionChangeUpdate() checker callback is no longer used since recently.
Fixes a buildbot warning.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp?rev=298699&r1=298698&r2=298699&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp Fri Mar 24 05:16:08 2017
@@ -50,7 +50,6 @@ public:
void checkPreCall(const CallEvent &MC, CheckerContext &C) const;
void checkPostCall(const CallEvent &MC, CheckerContext &C) const;
void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const;
- bool wantsRegionChangeUpdate(ProgramStateRef State) const;
ProgramStateRef
checkRegionChanges(ProgramStateRef State,
const InvalidatedSymbols *Invalidated,
@@ -453,12 +452,6 @@ void MisusedMovedObjectChecker::checkDea
C.addTransition(State);
}
-bool MisusedMovedObjectChecker::wantsRegionChangeUpdate(
- ProgramStateRef State) const {
- TrackedRegionMapTy Regions = State->get<TrackedRegionMap>();
- return !Regions.isEmpty();
-}
-
ProgramStateRef MisusedMovedObjectChecker::checkRegionChanges(
ProgramStateRef State, const InvalidatedSymbols *Invalidated,
ArrayRef<const MemRegion *> ExplicitRegions,
More information about the cfe-commits
mailing list