enum ObjCMethodFamily
Description
A family of Objective-C methods. These families have no inherent meaning in the language, but are nonetheless central enough in the existing implementations to merit direct AST support. While, in theory, arbitrary methods can be considered to form families, we focus here on the methods involving allocation and retain-count management, as these are the most "core" and the most likely to be useful to diverse clients without extra information. Both selectors and actual method declarations may be classified into families. Method families may impose additional restrictions beyond their selector name; for example, a method called '_init' that returns void is not considered to be in the 'init' family (but would be if it returned 'id'). It is also possible to explicitly change or remove a method's family. Therefore the method's family should be considered the single source of truth.
Declared at: clang/include/clang/Basic/IdentifierTable.h:690
Enumerators
Name | Value | Comment |
---|---|---|
OMF_None | 0 | No particular method family. |
OMF_alloc | 1 | No particular method family. |
OMF_copy | 2 | No particular method family. |
OMF_init | 3 | No particular method family. |
OMF_mutableCopy | 4 | No particular method family. |
OMF_new | 5 | No particular method family. |
OMF_autorelease | 6 | No particular method family. |
OMF_dealloc | 7 | No particular method family. |
OMF_finalize | 8 | No particular method family. |
OMF_release | 9 | No particular method family. |
OMF_retain | 10 | No particular method family. |
OMF_retainCount | 11 | No particular method family. |
OMF_self | 12 | No particular method family. |
OMF_initialize | 13 | No particular method family. |
OMF_performSelector | 14 | No particular method family. |