]> granicus.if.org Git - clang/commitdiff
Update comment for ObjCImplementationDecl's handling of instance variables.
authorJordan Rose <jordan_rose@apple.com>
Tue, 6 May 2014 16:07:54 +0000 (16:07 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 6 May 2014 16:07:54 +0000 (16:07 +0000)
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208099 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 737276a6e5fc558564807a847228d6ad89e2c0cf..50f99e763990d6501e60cca6073419d6608bc70e 100644 (file)
@@ -1976,11 +1976,14 @@ raw_ostream &operator<<(raw_ostream &OS, const ObjCCategoryImplDecl &CID);
 /// \@end
 /// @endcode
 ///
-/// Typically, instance variables are specified in the class interface,
-/// *not* in the implementation. Nevertheless (for legacy reasons), we
-/// allow instance variables to be specified in the implementation.  When
-/// specified, they need to be *identical* to the interface.
+/// In a non-fragile runtime, instance variables can appear in the class
+/// interface, class extensions (nameless categories), and in the implementation
+/// itself, as well as being synthesized as backing storage for properties.
 ///
+/// In a fragile runtime, instance variables are specified in the class
+/// interface, \em not in the implementation. Nevertheless (for legacy reasons),
+/// we allow instance variables to be specified in the implementation. When
+/// specified, they need to be \em identical to the interface.
 class ObjCImplementationDecl : public ObjCImplDecl {
   void anchor() override;
   /// Implementation Class's super class.