From: Douglas Gregor Date: Thu, 17 Feb 2011 18:32:37 +0000 (+0000) Subject: Replace a FIXME with a comment describing why we did what we did X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c99d88a6cfa14fc2edab819d5e4325c973b2809;p=clang Replace a FIXME with a comment describing why we did what we did git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125757 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 2ddb68482f..ddc680fb82 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -450,8 +450,11 @@ class ObjCInterfaceDecl : public ObjCContainerDecl { /// Protocols reference in both the @interface and class extensions. ObjCList 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