r193283 - Wordsmith text of objc_requires_super.
Ted Kremenek
kremenek at apple.com
Wed Oct 23 15:41:52 PDT 2013
Author: kremenek
Date: Wed Oct 23 17:41:52 2013
New Revision: 193283
URL: http://llvm.org/viewvc/llvm-project?rev=193283&view=rev
Log:
Wordsmith text of objc_requires_super.
Modified:
cfe/trunk/docs/LanguageExtensions.rst
Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=193283&r1=193282&r2=193283&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Wed Oct 23 17:41:52 2013
@@ -1177,15 +1177,15 @@ of this feature in version of clang bein
.. _langext-objc_method_family:
-Objective-C requiring a call to a super in an override
-------------------------------------------------------
+Objective-C requiring a call to ``super`` in an override
+--------------------------------------------------------
-Some Objective-C classes allow an subclass to override a particular method in
-a parent class but expect that the override chains to calling the same method
-in the parent class. In such cases it is useful to be able to mark a method
-as having this required chaining behavior from overrides in subclasses. For
-these cases, we provide an attribute to designate that a method requires a
-"call to ``super``" in the overriden method in the subclass.
+Some Objective-C classes allow a subclass to override a particular method in a
+parent class but expect that the override chains to calling the same method in
+the parent class. In such cases it is useful to be able to mark a method as
+requiring this chaining behavior. For these cases, we provide an attribute to
+designate that a method requires a "call to ``super``" in the overriden method
+in the subclass.
**Usage**: ``__attribute__((objc_requires_super))``. This attribute can only be placed at the end of a method declaration:
More information about the cfe-commits
mailing list