location they occur (the end node). Subclasses can override this behavior by providing a different ProgramPoint.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51197
91177308-0d34-0410-b5e6-
96231b3b80d8
BugTypeCacheLocation() {}
virtual ~BugTypeCacheLocation() {}
virtual bool isCached(BugReport& R);
+ bool isCached(ProgramPoint P);
};
// warning for the same error type that occurs at the same program
// location but along a different path.
- void* p = N->getLocation().getRawData();
+ return isCached(N->getLocation());
+}
+
+bool BugTypeCacheLocation::isCached(ProgramPoint P) {
+
+ void* p = P.getRawData();
if (CachedErrors.count(p))
return true;