]> granicus.if.org Git - clang/commitdiff
improve comments.
authorChris Lattner <sabre@nondot.org>
Mon, 21 Jul 2008 04:07:11 +0000 (04:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Jul 2008 04:07:11 +0000 (04:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53818 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index 51a87dd8c5d336afa2d9986a1549024437bbf5ad..7572d18ca3611d7d1a44d080bf62c6dd3cadadc2 100644 (file)
@@ -268,10 +268,10 @@ public:
   /// purpose.
   int getObjCEncodingTypeSize(QualType t);
     
-  // This setter/getter repreents the ObjC 'id' type. It is setup lazily, by
-  // Sema.
-  void setObjCIdType(TypedefDecl *Decl);
+  /// This setter/getter represents the ObjC 'id' type. It is setup lazily, by
+  /// Sema.  id is always a (typedef for a) pointer type, a pointer to a struct.
   QualType getObjCIdType() const { return ObjCIdType; }
+  void setObjCIdType(TypedefDecl *Decl);
   
   void setObjCSelType(TypedefDecl *Decl);
   QualType getObjCSelType() const { return ObjCSelType; }
@@ -279,8 +279,11 @@ public:
   void setObjCProtoType(QualType QT);
   QualType getObjCProtoType() const { return ObjCProtoType; }
   
-  void setObjCClassType(TypedefDecl *Decl);
+  /// This setter/getter repreents the ObjC 'Class' type. It is setup lazily, by
+  /// Sema.  'Class' is always a (typedef for a) pointer type, a pointer to a
+  /// struct.
   QualType getObjCClassType() const { return ObjCClassType; }
+  void setObjCClassType(TypedefDecl *Decl);
   
   void setBuiltinVaListType(QualType T);
   QualType getBuiltinVaListType() const { return BuiltinVaListType; }