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

NameValueComment
OMF_None0No particular method family.
OMF_alloc1No particular method family.
OMF_copy2No particular method family.
OMF_init3No particular method family.
OMF_mutableCopy4No particular method family.
OMF_new5No particular method family.
OMF_autorelease6No particular method family.
OMF_dealloc7No particular method family.
OMF_finalize8No particular method family.
OMF_release9No particular method family.
OMF_retain10No particular method family.
OMF_retainCount11No particular method family.
OMF_self12No particular method family.
OMF_initialize13No particular method family.
OMF_performSelector14No particular method family.