]> granicus.if.org Git - clang/commitdiff
Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext().
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 20 Aug 2009 01:23:34 +0000 (01:23 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 20 Aug 2009 01:23:34 +0000 (01:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79502 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/ExplodedGraph.h
include/clang/Analysis/ProgramPoint.h
lib/Analysis/BugReporter.cpp

index 9b6507420bef2c682eb8c306349a16ec3549ba1a..1a25565c2942264cd28dd264297f8374e03d2e18 100644 (file)
@@ -111,7 +111,7 @@ public:
   ProgramPoint getLocation() const { return Location; }
 
   const LocationContext *getLocationContext() const { 
-    return getLocation().getContext(); 
+    return getLocation().getLocationContext(); 
   }
 
   const GRState* getState() const {
index cddcefa4e929ff0fbd603122934188473de44aad..f2ff998fd86182fccba0990e90703f510fd4f3d7 100644 (file)
@@ -73,7 +73,7 @@ protected:
 public:    
   Kind getKind() const { return K; }
 
-  const LocationContext *getContext() const { return L; }
+  const LocationContext *getLocationContext() const { return L; }
 
   // For use with DenseMap.  This hash is probably slow.
   unsigned getHashValue() const {
index 62313c67b65aa176bc9564d465f5a055018f6db9..1a77ecb55f2f22b020864638ff1a11618d9059a5 100644 (file)
@@ -1213,7 +1213,7 @@ const Stmt* BugReport::getStmt() const {
   const Stmt *S = NULL;
   
   if (BlockEntrance* BE = dyn_cast<BlockEntrance>(&ProgP)) {
-    CFGBlock &Exit = ProgP.getContext()->getCFG()->getExit();
+    CFGBlock &Exit = ProgP.getLocationContext()->getCFG()->getExit();
     if (BE->getBlock() == &Exit)
       S = GetPreviousStmt(EndNode);
   }