From: Ted Kremenek Date: Wed, 23 Oct 2013 22:41:52 +0000 (+0000) Subject: Wordsmith text of objc_requires_super. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e973b953334d67366de752cac08af75b13b919a;p=clang Wordsmith text of objc_requires_super. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193283 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst index ca02b7e4f0..0e365b4072 100644 --- a/docs/LanguageExtensions.rst +++ b/docs/LanguageExtensions.rst @@ -1177,15 +1177,15 @@ of this feature in version of clang being used. .. _langext-objc_method_family: -Objective-C requiring a call to a 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. +Objective-C requiring a call to ``super`` in an override +-------------------------------------------------------- + +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: