[cfe-commits] r125757 - /cfe/trunk/include/clang/AST/DeclObjC.h

Douglas Gregor dgregor at apple.com
Thu Feb 17 10:32:37 PST 2011


Author: dgregor
Date: Thu Feb 17 12:32:37 2011
New Revision: 125757

URL: http://llvm.org/viewvc/llvm-project?rev=125757&view=rev
Log:
Replace a FIXME with a comment describing why we did what we did

Modified:
    cfe/trunk/include/clang/AST/DeclObjC.h

Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=125757&r1=125756&r2=125757&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Thu Feb 17 12:32:37 2011
@@ -450,8 +450,11 @@
   /// 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





More information about the cfe-commits mailing list