summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-01 15:55:24 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-01 15:55:24 +0000
commitaec2b6e36038938290ee5b58b58910e28a5bc639 (patch)
tree8b1daee06c1d9b31af8c8c0adb13fa28bb95872c
parentd4b2a67cf3aba4d340654a6d6fdcaa9af8549527 (diff)
downloadbcm5719-llvm-aec2b6e36038938290ee5b58b58910e28a5bc639.tar.gz
bcm5719-llvm-aec2b6e36038938290ee5b58b58910e28a5bc639.zip
Added comments to ObjCMessageExpr.
llvm-svn: 50525
-rw-r--r--clang/include/clang/AST/Expr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 8a25832874e..df0ea772671 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -1538,6 +1538,9 @@ public:
delete [] SubExprs;
}
+ /// getReceiver - Returns the receiver of the message expression.
+ /// This can be NULL if the message is for instance methods. For
+ /// instance methods, use getClassName.
const Expr *getReceiver() const { return SubExprs[RECEIVER]; }
Expr *getReceiver() { return SubExprs[RECEIVER]; }
@@ -1546,13 +1549,15 @@ public:
const ObjCMethodDecl *getMethodDecl() const { return MethodProto; }
ObjCMethodDecl *getMethodDecl() { return MethodProto; }
+ /// getClassName - For instance methods, this returns the invoked class,
+ /// and returns NULL otherwise. For regular methods, use getReceiver.
const IdentifierInfo *getClassName() const { return ClassName; }
IdentifierInfo *getClassName() { return ClassName; }
/// getNumArgs - Return the number of actual arguments to this call.
unsigned getNumArgs() const { return NumArgs; }
-/// getArg - Return the specified argument.
+ /// getArg - Return the specified argument.
Expr *getArg(unsigned Arg) {
assert(Arg < NumArgs && "Arg access out of range!");
return SubExprs[Arg+ARGS_START];
OpenPOWER on IntegriCloud