aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/ProgramEdge.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-03 22:07:01 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-03 22:07:01 +0000
commit02ad1a2c515683ae5365d31c2c86c735d6104c13 (patch)
tree1347dae0b5c8ed0502f332a6faeaf9ee241e3050 /include/clang/Analysis/ProgramEdge.h
parente5dc608710de0cb74f5ce9a3aae484bd680a0cb4 (diff)
De-constified the pointers returned by the Dst() and Src() methods of
the various ProgramEdge classes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramEdge.h')
-rw-r--r--include/clang/Analysis/ProgramEdge.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/clang/Analysis/ProgramEdge.h b/include/clang/Analysis/ProgramEdge.h
index b1f7795cf9..0962d71461 100644
--- a/include/clang/Analysis/ProgramEdge.h
+++ b/include/clang/Analysis/ProgramEdge.h
@@ -66,8 +66,8 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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; }
};