[cfe-commits] r45548 - /cfe/trunk/include/clang/Analysis/ProgramEdge.h

Ted Kremenek kremenek at apple.com
Thu Jan 3 14:07:02 PST 2008


Author: kremenek
Date: Thu Jan  3 16:07:01 2008
New Revision: 45548

URL: http://llvm.org/viewvc/llvm-project?rev=45548&view=rev
Log:
De-constified the pointers returned by the Dst() and Src() methods of
the various ProgramEdge classes.

Modified:
    cfe/trunk/include/clang/Analysis/ProgramEdge.h

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

==============================================================================
--- cfe/trunk/include/clang/Analysis/ProgramEdge.h (original)
+++ cfe/trunk/include/clang/Analysis/ProgramEdge.h Thu Jan  3 16:07:01 2008
@@ -66,8 +66,8 @@
   StmtBlkEdge(const Stmt* S,const CFGBlock* B)
   : ProgramEdge(S,B,StmtBlk) {}
   
-  const Stmt*     Src() const { return reinterpret_cast<Stmt*>(RawSrc()); }
-  const CFGBlock* Dst() const { return reinterpret_cast<CFGBlock*>(RawDst()); }  
+  Stmt*     Src() const { return reinterpret_cast<Stmt*>(RawSrc()); }
+  CFGBlock* Dst() const { return reinterpret_cast<CFGBlock*>(RawDst()); }  
   
   static bool classof(const ProgramEdge* E) { return E->getKind() == StmtBlk; }
 };
@@ -77,8 +77,8 @@
   BlkStmtEdge(const CFGBlock* B, const Stmt* S)
   : ProgramEdge(B,S,BlkStmt) {}
   
-  const CFGBlock* Src() const { return reinterpret_cast<CFGBlock*>(RawSrc()); }  
-  const Stmt*     Dst() const { return reinterpret_cast<Stmt*>(RawDst()); }
+  CFGBlock* Src() const { return reinterpret_cast<CFGBlock*>(RawSrc()); }  
+  Stmt*     Dst() const { return reinterpret_cast<Stmt*>(RawDst()); }
 
   static bool classof(const ProgramEdge* E) { return E->getKind() == StmtBlk; }
 };
@@ -88,8 +88,8 @@
   StmtStmtEdge(const Stmt* S1, const Stmt* S2)
   : ProgramEdge(S1,S2,StmtStmt) {}
   
-  const Stmt*     Src() const { return reinterpret_cast<Stmt*>(RawSrc()); }  
-  const Stmt*     Dst() const { return reinterpret_cast<Stmt*>(RawDst()); }
+  Stmt*     Src() const { return reinterpret_cast<Stmt*>(RawSrc()); }  
+  Stmt*     Dst() const { return reinterpret_cast<Stmt*>(RawDst()); }
   
   static bool classof(const ProgramEdge* E) { return E->getKind() == StmtStmt; }
 };
@@ -100,8 +100,8 @@
   BlkBlkEdge(const CFGBlock* B1, const CFGBlock* B2)
   : ProgramEdge(B1,B2,BlkBlk) {}
   
-  const CFGBlock* Src() const { return reinterpret_cast<CFGBlock*>(RawSrc()); }  
-  const CFGBlock* Dst() const { return reinterpret_cast<CFGBlock*>(RawDst()); }
+  CFGBlock* Src() const { return reinterpret_cast<CFGBlock*>(RawSrc()); }  
+  CFGBlock* Dst() const { return reinterpret_cast<CFGBlock*>(RawDst()); }
   
   static bool classof(const ProgramEdge* E) { return E->getKind() == BlkBlk; }
 };





More information about the cfe-commits mailing list