]> granicus.if.org Git - clang/commitdiff
improve comments yet again, now I know what this does :)
authorChris Lattner <sabre@nondot.org>
Mon, 21 Jul 2008 04:16:33 +0000 (04:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Jul 2008 04:16:33 +0000 (04:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.cpp
lib/Sema/Sema.h

index 478763190a6d79932f44cda64bf2083ff25e49ee..61a8948e4d76409a53b73469c417a035712f3139 100644 (file)
@@ -27,7 +27,9 @@ bool Sema::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.
+/// 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;
index c19daded7c33f04433b8541c6ab40f3fbac4dcf9..4e563a934eaf610f395d61f20ac140edb3008d6a 100644 (file)
@@ -345,8 +345,10 @@ private:
   /// 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