r208099 - Update comment for ObjCImplementationDecl's handling of instance variables.

Jordan Rose jordan_rose at apple.com
Tue May 6 09:07:54 PDT 2014


Author: jrose
Date: Tue May  6 11:07:54 2014
New Revision: 208099

URL: http://llvm.org/viewvc/llvm-project?rev=208099&view=rev
Log:
Update comment for ObjCImplementationDecl's handling of instance variables.

No functionality change.

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=208099&r1=208098&r2=208099&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Tue May  6 11:07:54 2014
@@ -1976,11 +1976,14 @@ raw_ostream &operator<<(raw_ostream &OS,
 /// \@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.





More information about the cfe-commits mailing list