clang API Documentation
#include <DeclObjC.h>
Public Member Functions | |
IdentifierInfo * | getIdentifier () const |
void | setIdentifier (IdentifierInfo *II) |
ObjCCategoryDecl * | getCategoryDecl () const |
SourceLocation | getCategoryNameLoc () const |
StringRef | getName () const |
std::string | getNameAsString () const |
Get the name of the class associated with this interface. | |
Static Public Member Functions | |
static ObjCCategoryImplDecl * | Create (ASTContext &C, DeclContext *DC, IdentifierInfo *Id, ObjCInterfaceDecl *classInterface, SourceLocation nameLoc, SourceLocation atStartLoc, SourceLocation CategoryNameLoc) |
static ObjCCategoryImplDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
class | ASTDeclWriter |
ObjCCategoryImplDecl - An object of this class encapsulates a category @implementation declaration. If a category class has declaration of a property, its implementation must be specified in the category's @implementation declaration. Example: @interface I @end @interface I(CATEGORY) @property int p1, d1; @end @implementation I(CATEGORY) @dynamic p1,d1; @end
Definition at line 1912 of file DeclObjC.h.
static bool clang::ObjCCategoryImplDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::ObjCImplDecl.
Definition at line 1967 of file DeclObjC.h.
References classofKind(), and clang::Decl::getKind().
static bool clang::ObjCCategoryImplDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::ObjCImplDecl.
Definition at line 1968 of file DeclObjC.h.
Referenced by classof().
ObjCCategoryImplDecl * ObjCCategoryImplDecl::Create | ( | ASTContext & | C, |
DeclContext * | DC, | ||
IdentifierInfo * | Id, | ||
ObjCInterfaceDecl * | classInterface, | ||
SourceLocation | nameLoc, | ||
SourceLocation | atStartLoc, | ||
SourceLocation | CategoryNameLoc | ||
) | [static] |
Definition at line 1700 of file DeclObjC.cpp.
References AttributeLangSupport::C, clang::ObjCInterfaceDecl::getDefinition(), and clang::ObjCInterfaceDecl::hasDefinition().
Referenced by clang::Sema::ActOnStartCategoryImplementation(), and clang::ASTNodeImporter::VisitObjCCategoryImplDecl().
ObjCCategoryImplDecl * ObjCCategoryImplDecl::CreateDeserialized | ( | ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Definition at line 1712 of file DeclObjC.cpp.
References AttributeLangSupport::C.
Definition at line 1719 of file DeclObjC.cpp.
References clang::ObjCImplDecl::getClassInterface(), and getIdentifier().
Referenced by clang::Sema::CheckCategoryVsClassMethodMatches(), and clang::ASTNodeImporter::VisitObjCCategoryImplDecl().
SourceLocation clang::ObjCCategoryImplDecl::getCategoryNameLoc | ( | ) | const [inline] |
Definition at line 1951 of file DeclObjC.h.
Referenced by clang::ASTDeclWriter::VisitObjCCategoryImplDecl(), and clang::ASTNodeImporter::VisitObjCCategoryImplDecl().
IdentifierInfo* clang::ObjCCategoryImplDecl::getIdentifier | ( | ) | const [inline] |
getIdentifier - Get the identifier that names the category interface associated with this implementation. FIXME: This is a bad API, we are hiding NamedDecl::getIdentifier() with a different meaning. For example: ((NamedDecl *)SomeCategoryImplDecl)->getIdentifier() returns the class interface name, whereas ((ObjCCategoryImplDecl *)SomeCategoryImplDecl)->getIdentifier() returns the category name.
Reimplemented from clang::NamedDecl.
Definition at line 1944 of file DeclObjC.h.
Referenced by clang::Sema::ActOnPropertyImplDecl(), getCategoryDecl(), clang::ASTDeclWriter::VisitObjCCategoryImplDecl(), and clang::ASTNodeImporter::VisitObjCCategoryImplDecl().
StringRef clang::ObjCCategoryImplDecl::getName | ( | ) | const [inline] |
getName - Get the name of identifier for the class interface associated with this implementation as a StringRef.
Reimplemented from clang::NamedDecl.
Definition at line 1958 of file DeclObjC.h.
References clang::IdentifierInfo::getName().
Referenced by getNameAsString(), and clang::operator<<().
std::string clang::ObjCCategoryImplDecl::getNameAsString | ( | ) | const [inline] |
Get the name of the class associated with this interface.
Reimplemented from clang::NamedDecl.
Definition at line 1963 of file DeclObjC.h.
References getName().
void clang::ObjCCategoryImplDecl::setIdentifier | ( | IdentifierInfo * | II | ) | [inline] |
Definition at line 1947 of file DeclObjC.h.
Referenced by clang::ASTDeclReader::VisitObjCCategoryImplDecl().
friend class ASTDeclReader [friend] |
Reimplemented from clang::DeclContext.
Definition at line 1970 of file DeclObjC.h.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::Decl.
Definition at line 1971 of file DeclObjC.h.