diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-07 21:01:38 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-07 21:01:38 +0000 |
commit | 63d3201619fdac284adfd3b9328562fa20a01c40 (patch) | |
tree | b5b9131a4262a87332a66dce8bb450c5ecc160c8 /include/clang/Analysis/ProgramPoint.h | |
parent | 8828ee7faa42f889ade3bb635dc5f1338be671b1 (diff) |
ProgramPoint cleanup after the previous commit r141408 (remove the copy constructor, mark withTag const).
Move getProgramPoint() utility from CoreEngine.cpp into ProgramPoint.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r-- | include/clang/Analysis/ProgramPoint.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index e35c479add..7ec4ecd41b 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -78,12 +78,9 @@ protected: const void *getData2() const { return Data.second; } public: - ProgramPoint(const ProgramPoint &P) - : Data(P.Data), K(P.K), L(P.L), Tag(P.Tag) {} - /// Create a new ProgramPoint object that is the same as the original /// except for using the specified tag value. - ProgramPoint withTag(const ProgramPointTag *tag) { + ProgramPoint withTag(const ProgramPointTag *tag) const { return ProgramPoint(Data.first, Data.second, K, L, tag); } @@ -117,6 +114,11 @@ public: ID.AddPointer(L); ID.AddPointer(Tag); } + + static ProgramPoint getProgramPoint(const Stmt *S, ProgramPoint::Kind K, + const LocationContext *LC, + const ProgramPointTag *tag); + }; class BlockEntrance : public ProgramPoint { |