]> granicus.if.org Git - clang/commitdiff
Replace a FIXME with a comment describing why we did what we did
authorDouglas Gregor <dgregor@apple.com>
Thu, 17 Feb 2011 18:32:37 +0000 (18:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 17 Feb 2011 18:32:37 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125757 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 2ddb68482f91653bdb40cf7693853a13cda9a51b..ddc680fb82f6ff4fae7d73455abc3659a5d455aa 100644 (file)
@@ -450,8 +450,11 @@ class ObjCInterfaceDecl : public ObjCContainerDecl {
   /// Protocols reference in both the @interface and class extensions.
   ObjCList<ObjCProtocolDecl> AllReferencedProtocols;
 
-  /// List of categories defined for this class.
-  /// FIXME: Why is this a linked list??
+  /// \brief List of categories and class extensions defined for this class.
+  ///
+  /// Categories are stored as a linked list in the AST, since the categories
+  /// and class extensions come long after the initial interface declaration,
+  /// and we avoid dynamically-resized arrays in the AST whereever possible.
   ObjCCategoryDecl *CategoryList;
   
   /// IvarList - List of all ivars defined by this class; including class