summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-09-19 23:18:44 +0000
committerAnna Zaks <ganna@apple.com>2011-09-19 23:18:44 +0000
commitcf8742e471a712d551d9a348c85050427dce0b4a (patch)
tree37554bd83f284d2dbecb0ff7928631334fe40e2a /include
parenta2d7e6511a8767dc67381c210601b895a8ebae39 (diff)
downloadclang-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
Diffstat (limited to 'include')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h5
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();