Skip to content
Snippets Groups Projects
Commit 906f34cf authored by Fariborz Jahanian's avatar Fariborz Jahanian
Browse files

Objective-C. Modify text of documentation for objc_runtime_name

attribute.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213192 91177308-0d34-0410-b5e6-96231b3b80d8
parent 6cdcc747
No related branches found
No related tags found
No related merge requests found
...@@ -429,9 +429,11 @@ implementation of an override in a subclass does not call super. For example: ...@@ -429,9 +429,11 @@ implementation of an override in a subclass does not call super. For example:
def ObjCRuntimeNameDocs : Documentation { def ObjCRuntimeNameDocs : Documentation {
let Category = DocCatFunction; let Category = DocCatFunction;
let Content = [{ let Content = [{
Annotation of Objective-C classes and protocols with this attribute allow to By default, the Objective-C interface or protocol identifier is used
use an alternative name for metadata names which normally use class or protocol in the metadata name for that object. The `objc_runtime_name`
names as part of their names. attribute allows annotated interfaces or protocols to use the
specified string argument in the object's metadata name instead of the
default name.
**Usage**: ``__attribute__((objc_runtime_name("MyLocalName")))``. This attribute **Usage**: ``__attribute__((objc_runtime_name("MyLocalName")))``. This attribute
can only be placed before an @protocol or @interface declaration: can only be placed before an @protocol or @interface declaration:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment