]> granicus.if.org Git - clang/commitdiff
[analyzer] Add a convinience method.
authorAnna Zaks <ganna@apple.com>
Mon, 19 Sep 2011 23:18:44 +0000 (23:18 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 19 Sep 2011 23:18:44 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140092 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h

index bff94bcdb44e14f996f930cd75c39377fc46f154..add3479804bd369782ecf282cf6a797708593d59 100644 (file)
@@ -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();