diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-02-17 18:32:37 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-02-17 18:32:37 +0000 |
| commit | 65f57fe6ea9cfccc3259d2d3025688eeab25b31a (patch) | |
| tree | 81589dcf42308dd992825b21ff6b17707feff776 | |
| parent | e5de7013c75df8d25506e93ce5ba9d7c7f3d47a6 (diff) | |
| download | bcm5719-llvm-65f57fe6ea9cfccc3259d2d3025688eeab25b31a.tar.gz bcm5719-llvm-65f57fe6ea9cfccc3259d2d3025688eeab25b31a.zip | |
Replace a FIXME with a comment describing why we did what we did
llvm-svn: 125757
| -rw-r--r-- | clang/include/clang/AST/DeclObjC.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h index 2ddb68482f9..ddc680fb82f 100644 --- a/clang/include/clang/AST/DeclObjC.h +++ b/clang/include/clang/AST/DeclObjC.h @@ -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 |

