From: Anna Zaks Date: Mon, 19 Sep 2011 23:18:44 +0000 (+0000) Subject: [analyzer] Add a convinience method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf8742e471a712d551d9a348c85050427dce0b4a;p=clang [analyzer] Add a convinience method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140092 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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();