[cfe-commits] r79502 - in /cfe/trunk: include/clang/Analysis/PathSensitive/ExplodedGraph.h include/clang/Analysis/ProgramPoint.h lib/Analysis/BugReporter.cpp

Zhongxing Xu xuzhongxing at gmail.com
Wed Aug 19 18:23:34 PDT 2009


Author: zhongxingxu
Date: Wed Aug 19 20:23:34 2009
New Revision: 79502

URL: http://llvm.org/viewvc/llvm-project?rev=79502&view=rev
Log:
Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext().

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h
    cfe/trunk/include/clang/Analysis/ProgramPoint.h
    cfe/trunk/lib/Analysis/BugReporter.cpp

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h?rev=79502&r1=79501&r2=79502&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h Wed Aug 19 20:23:34 2009
@@ -111,7 +111,7 @@
   ProgramPoint getLocation() const { return Location; }
 
   const LocationContext *getLocationContext() const { 
-    return getLocation().getContext(); 
+    return getLocation().getLocationContext(); 
   }
 
   const GRState* getState() const {

Modified: cfe/trunk/include/clang/Analysis/ProgramPoint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/ProgramPoint.h?rev=79502&r1=79501&r2=79502&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/ProgramPoint.h (original)
+++ cfe/trunk/include/clang/Analysis/ProgramPoint.h Wed Aug 19 20:23:34 2009
@@ -73,7 +73,7 @@
 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 {

Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=79502&r1=79501&r2=79502&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Wed Aug 19 20:23:34 2009
@@ -1213,7 +1213,7 @@
   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);
   }





More information about the cfe-commits mailing list