From cf8742e471a712d551d9a348c85050427dce0b4a Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Mon, 19 Sep 2011 23:18:44 +0000 Subject: [analyzer] Add a convinience method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140092 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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(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(); -- cgit v1.2.1