From a75a8ea5b72ebdda5f651b57ae2c3b4e84b69253 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 24 Jun 2008 04:44:10 +0000 Subject: [PATCH] Fix comments: "class method" should be "instance method" and vis versa git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52669 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/ExprObjC.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clang/AST/ExprObjC.h b/include/clang/AST/ExprObjC.h index 12c5afc80a..03c96f1757 100644 --- a/include/clang/AST/ExprObjC.h +++ b/include/clang/AST/ExprObjC.h @@ -266,8 +266,8 @@ public: } /// 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 @@ 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. + /// 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; -- 2.50.1