[cfe-commits] r140092 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h
Anna Zaks
ganna at apple.com
Mon Sep 19 16:18:44 PDT 2011
Author: zaks
Date: Mon Sep 19 18:18:44 2011
New Revision: 140092
URL: http://llvm.org/viewvc/llvm-project?rev=140092&view=rev
Log:
[analyzer] Add a convinience method.
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h
Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h?rev=140092&r1=140091&r2=140092&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h Mon Sep 19 18:18:44 2011
@@ -123,6 +123,11 @@
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();
More information about the cfe-commits
mailing list