[cfe-commits] r53821 - in /cfe/trunk/lib/Sema: Sema.cpp Sema.h
Chris Lattner
sabre at nondot.org
Sun Jul 20 21:16:33 PDT 2008
Author: lattner
Date: Sun Jul 20 23:16:33 2008
New Revision: 53821
URL: http://llvm.org/viewvc/llvm-project?rev=53821&view=rev
Log:
improve comments yet again, now I know what this does :)
Modified:
cfe/trunk/lib/Sema/Sema.cpp
cfe/trunk/lib/Sema/Sema.h
Modified: cfe/trunk/lib/Sema/Sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.cpp?rev=53821&r1=53820&r2=53821&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.cpp (original)
+++ cfe/trunk/lib/Sema/Sema.cpp Sun Jul 20 23:16:33 2008
@@ -27,7 +27,9 @@
}
/// isObjCObjectPointerType - Returns true if type is an Objective-C pointer
-/// to an object type; such as "id", "Class", Intf*, id<P>, etc.
+/// to an object type. This includes "id" and "Class" (two 'special' pointers
+/// to struct), Interface* (pointer to ObjCInterfaceType) and id<P> (qualified
+/// ID type).
bool Sema::isObjCObjectPointerType(QualType Ty) const {
if (Ty->isObjCQualifiedIdType())
return true;
Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=53821&r1=53820&r2=53821&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Sun Jul 20 23:16:33 2008
@@ -345,8 +345,10 @@
/// or "Protocol".
bool isBuiltinObjCType(TypedefDecl *TD);
- /// isObjCObjectPointerType - Returns true if type is an objective-c pointer
- /// to an object type; such as "id", "Class", Intf*, id<P>, etc.
+ /// isObjCObjectPointerType - Returns true if type is an Objective-C pointer
+ /// to an object type. This includes "id" and "Class" (two 'special' pointers
+ /// to struct), Interface* (pointer to ObjCInterfaceType) and id<P> (qualified
+ /// ID type).
bool isObjCObjectPointerType(QualType type) const;
/// AddInstanceMethodToGlobalPool - All instance methods in a translation
More information about the cfe-commits
mailing list