[cfe-commits] r52669 - /cfe/trunk/include/clang/AST/ExprObjC.h
Ted Kremenek
kremenek at apple.com
Mon Jun 23 21:44:10 PDT 2008
Author: kremenek
Date: Mon Jun 23 23:44:10 2008
New Revision: 52669
URL: http://llvm.org/viewvc/llvm-project?rev=52669&view=rev
Log:
Fix comments: "class method" should be "instance method" and vis versa
Modified:
cfe/trunk/include/clang/AST/ExprObjC.h
Modified: cfe/trunk/include/clang/AST/ExprObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprObjC.h?rev=52669&r1=52668&r2=52669&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExprObjC.h (original)
+++ cfe/trunk/include/clang/AST/ExprObjC.h Mon Jun 23 23:44:10 2008
@@ -266,8 +266,8 @@
}
/// getReceiver - Returns the receiver of the message expression.
- /// This can be NULL if the message is for instance methods. For
- /// instance methods, use getClassName.
+ /// This can be NULL if the message is for class methods. For
+ /// class methods, use getClassName.
Expr *getReceiver() {
uintptr_t x = (uintptr_t) SubExprs[RECEIVER];
return x & 0x1 ? NULL : (Expr*) x;
@@ -281,8 +281,8 @@
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.
+ /// getClassName - For class methods, this returns the invoked class,
+ /// and returns NULL otherwise. For instance methods, use getReceiver.
IdentifierInfo *getClassName() {
uintptr_t x = (uintptr_t) SubExprs[RECEIVER];
return x & 0x1 ? (IdentifierInfo*) (x & ~0x1) : NULL;
More information about the cfe-commits
mailing list