diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-07 18:27:16 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-07 18:27:16 +0000 |
commit | 7090d5465de7ca620da16211cf886edf1edc1f1f (patch) | |
tree | 6e63bf21208f5d16e116a6bc69db59cd6783d6da /include/clang/Analysis/ProgramPoint.h | |
parent | 6d507a6d96ea6379bc1df207abe26ad4cbe6563d (diff) |
analyzer: Add ProgramPoint 'PostLValue' just to distinguish (for
analysis introspection) when we computed an lvalue. This shouldn't
effect the current analysis results in any way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r-- | include/clang/Analysis/ProgramPoint.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index 1587371961..074a262038 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -39,8 +39,9 @@ public: PostStoreKind = 0x9, PostPurgeDeadSymbolsKind = 0x10, PostStmtCustomKind = 0x11, + PostLValueKind = 0x12, MinPostStmtKind = PostStmtKind, - MaxPostStmtKind = PostStmtCustomKind }; + MaxPostStmtKind = PostLValueKind }; private: enum { TwoPointers = 0x1, Custom = 0x2, Mask = 0x3 }; @@ -269,6 +270,16 @@ public: return Location->getKind() == PostStoreKind; } }; + +class PostLValue : public PostStmt { +public: + PostLValue(const Stmt* S, const void *tag = 0) + : PostStmt(S, PostLValueKind, tag) {} + + static bool classof(const ProgramPoint* Location) { + return Location->getKind() == PostLValueKind; + } +}; class PostPurgeDeadSymbols : public PostStmt { public: |