diff options
author | Anna Zaks <ganna@apple.com> | 2011-09-19 23:18:44 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-09-19 23:18:44 +0000 |
commit | cf8742e471a712d551d9a348c85050427dce0b4a (patch) | |
tree | 37554bd83f284d2dbecb0ff7928631334fe40e2a | |
parent | a2d7e6511a8767dc67381c210601b895a8ebae39 (diff) | |
download | clang-cf8742e471a712d551d9a348c85050427dce0b4a.tar.gz |
[analyzer] Add a convinience method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140092 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h index bff94bcdb4..add3479804 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h @@ -123,6 +123,11 @@ public: return cast<ObjCPropertyRefExpr>(MsgOrPropE)->getReceiverLocation(); } + const Expr *getMsgOrPropExpr() const { + assert(isValid() && "This ObjCMessage is uninitialized!"); + return MsgOrPropE; + } + SourceRange getSourceRange() const { assert(isValid() && "This ObjCMessage is uninitialized!"); return MsgOrPropE->getSourceRange(); |