From 4e973b953334d67366de752cac08af75b13b919a Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 23 Oct 2013 22:41:52 +0000 Subject: [PATCH] Wordsmith text of objc_requires_super. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193283 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LanguageExtensions.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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: -- 2.40.0