clang API Documentation
#include <DeclObjC.h>


ObjCContainerDecl - Represents a container for method declarations. Current sub-classes are ObjCInterfaceDecl, ObjCCategoryDecl, ObjCProtocolDecl, and ObjCImplDecl.
Definition at line 434 of file DeclObjC.h.
| typedef filtered_decl_iterator<ObjCMethodDecl, &ObjCMethodDecl::isClassMethod> clang::ObjCContainerDecl::classmeth_iterator |
Definition at line 479 of file DeclObjC.h.
| typedef filtered_decl_iterator<ObjCMethodDecl, &ObjCMethodDecl::isInstanceMethod> clang::ObjCContainerDecl::instmeth_iterator |
Definition at line 469 of file DeclObjC.h.
Definition at line 459 of file DeclObjC.h.
Definition at line 450 of file DeclObjC.h.
| clang::ObjCContainerDecl::ObjCContainerDecl | ( | Kind | DK, |
| DeclContext * | DC, | ||
| IdentifierInfo * | Id, | ||
| SourceLocation | nameLoc, | ||
| SourceLocation | atStartLoc | ||
| ) | [inline] |
Definition at line 444 of file DeclObjC.h.
| static ObjCContainerDecl* clang::ObjCContainerDecl::castFromDeclContext | ( | const DeclContext * | DC | ) | [inline, static] |
Reimplemented from clang::Decl.
Definition at line 525 of file DeclObjC.h.
| static DeclContext* clang::ObjCContainerDecl::castToDeclContext | ( | const ObjCContainerDecl * | D | ) | [inline, static] |
Definition at line 522 of file DeclObjC.h.
| classmeth_iterator clang::ObjCContainerDecl::classmeth_begin | ( | ) | const [inline] |
Definition at line 480 of file DeclObjC.h.
References clang::DeclContext::decls_begin().
Referenced by clang::Sema::CheckCategoryVsClassMethodMatches(), clang::Sema::CheckProtocolMethodDefs(), clang::Sema::ImplMethodsVsClassMethods(), and clang::Sema::MatchAllMethodDeclarations().
| classmeth_iterator clang::ObjCContainerDecl::classmeth_end | ( | ) | const [inline] |
Definition at line 483 of file DeclObjC.h.
References clang::DeclContext::decls_end().
Referenced by clang::Sema::CheckCategoryVsClassMethodMatches(), clang::Sema::CheckProtocolMethodDefs(), clang::Sema::ImplMethodsVsClassMethods(), and clang::Sema::MatchAllMethodDeclarations().
| static bool clang::ObjCContainerDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::NamedDecl.
Reimplemented in clang::ObjCImplementationDecl, clang::ObjCCategoryImplDecl, clang::ObjCImplDecl, clang::ObjCCategoryDecl, clang::ObjCProtocolDecl, and clang::ObjCInterfaceDecl.
Definition at line 515 of file DeclObjC.h.
References classofKind(), and clang::Decl::getKind().
| static bool clang::ObjCContainerDecl::classof | ( | const ObjCContainerDecl * | D | ) | [inline, static] |
Definition at line 516 of file DeclObjC.h.
| static bool clang::ObjCContainerDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::NamedDecl.
Reimplemented in clang::ObjCImplementationDecl, clang::ObjCCategoryImplDecl, clang::ObjCImplDecl, clang::ObjCCategoryDecl, clang::ObjCProtocolDecl, and clang::ObjCInterfaceDecl.
Definition at line 517 of file DeclObjC.h.
Referenced by classof().
| ObjCPropertyDecl * ObjCContainerDecl::FindPropertyDeclaration | ( | IdentifierInfo * | PropertyId | ) | const |
FindPropertyDeclaration - Finds declaration of the property given its name in 'PropertyId' and returns it. It returns 0, if not found.
Definition at line 99 of file DeclObjC.cpp.
References clang::ObjCInterfaceDecl::all_referenced_protocol_begin(), clang::ObjCInterfaceDecl::all_referenced_protocol_end(), clang::ObjCPropertyDecl::findPropertyDecl(), clang::ObjCInterfaceDecl::getCategoryList(), clang::Decl::getKind(), clang::ObjCCategoryDecl::getNextClassCategory(), clang::ObjCInterfaceDecl::getSuperClass(), clang::ObjCCategoryDecl::IsClassExtension(), P, clang::ObjCProtocolDecl::protocol_begin(), clang::ObjCCategoryDecl::protocol_begin(), clang::ObjCProtocolDecl::protocol_end(), and clang::ObjCCategoryDecl::protocol_end().
Referenced by clang::Sema::ActOnPropertyImplDecl(), clang::Sema::CodeCompleteObjCPropertySynthesizeIvar(), FindGetterSetterNameDeclFromProtocolList(), clang::Sema::HandleExprPropertyRefExpr(), and clang::Sema::LookupMemberExpr().
| SourceRange clang::ObjCContainerDecl::getAtEndRange | ( | ) | const [inline] |
Definition at line 503 of file DeclObjC.h.
Referenced by getSourceRange(), and clang::ASTDeclWriter::VisitObjCContainerDecl().
| SourceLocation clang::ObjCContainerDecl::getAtStartLoc | ( | ) | const [inline] |
Definition at line 499 of file DeclObjC.h.
Referenced by clang::ObjCInterfaceDecl::getSourceRange(), clang::ObjCProtocolDecl::getSourceRange(), clang::ASTNodeImporter::VisitObjCCategoryDecl(), clang::ASTNodeImporter::VisitObjCCategoryImplDecl(), clang::ASTDeclWriter::VisitObjCContainerDecl(), clang::ASTNodeImporter::VisitObjCImplementationDecl(), clang::ASTNodeImporter::VisitObjCInterfaceDecl(), and clang::ASTNodeImporter::VisitObjCProtocolDecl().
| ObjCMethodDecl* clang::ObjCContainerDecl::getClassMethod | ( | Selector | Sel | ) | const [inline] |
Definition at line 492 of file DeclObjC.h.
References getMethod().
Referenced by clang::ObjCInterfaceDecl::getCategoryMethod(), and clang::Sema::MatchAllMethodDeclarations().
| ObjCMethodDecl* clang::ObjCContainerDecl::getInstanceMethod | ( | Selector | Sel | ) | const [inline] |
Definition at line 489 of file DeclObjC.h.
References getMethod().
Referenced by clang::Sema::AtomicPropertySetterGetterRules(), clang::Sema::DefaultSynthesizeProperties(), clang::Sema::DiagnoseOwningPropertyGetterSynthesis(), FindGetterSetterNameDeclFromProtocolList(), clang::ObjCInterfaceDecl::getCategoryMethod(), clang::Sema::isPropertyReadonly(), clang::Sema::MatchAllMethodDeclarations(), and clang::Sema::ProcessPropertyDecl().
| ObjCIvarDecl * ObjCContainerDecl::getIvarDecl | ( | IdentifierInfo * | Id | ) | const |
getIvarDecl - This method looks up an ivar in this ContextDecl.
Definition at line 54 of file DeclObjC.cpp.
References clang::DeclContext::lookup().
Referenced by clang::Sema::ActOnFields(), and clang::ObjCInterfaceDecl::lookupInstanceVariable().
| ObjCMethodDecl * ObjCContainerDecl::getMethod | ( | Selector | Sel, |
| bool | isInstance | ||
| ) | const |
Definition at line 65 of file DeclObjC.cpp.
References clang::ObjCMethodDecl::isInstanceMethod(), and clang::DeclContext::lookup().
Referenced by AddSuperSendCompletion(), getClassMethod(), getInstanceMethod(), clang::ObjCInterfaceDecl::lookupMethod(), and clang::ObjCProtocolDecl::lookupMethod().
| virtual SourceRange clang::ObjCContainerDecl::getSourceRange | ( | ) | const [inline, virtual] |
Source range that this declaration covers.
Reimplemented from clang::Decl.
Reimplemented in clang::ObjCProtocolDecl, and clang::ObjCInterfaceDecl.
Definition at line 510 of file DeclObjC.h.
References getAtEndRange().
| instmeth_iterator clang::ObjCContainerDecl::instmeth_begin | ( | ) | const [inline] |
Definition at line 470 of file DeclObjC.h.
References clang::DeclContext::decls_begin().
Referenced by clang::Sema::CheckCategoryVsClassMethodMatches(), checkObjCDealloc(), CheckObjCInstMethSignature(), clang::Sema::CheckProtocolMethodDefs(), clang::Sema::ImplMethodsVsClassMethods(), clang::Sema::MatchAllMethodDeclarations(), and Scan().
| instmeth_iterator clang::ObjCContainerDecl::instmeth_end | ( | ) | const [inline] |
Definition at line 473 of file DeclObjC.h.
References clang::DeclContext::decls_end().
Referenced by clang::Sema::CheckCategoryVsClassMethodMatches(), checkObjCDealloc(), CheckObjCInstMethSignature(), clang::Sema::CheckProtocolMethodDefs(), clang::Sema::ImplMethodsVsClassMethods(), clang::Sema::MatchAllMethodDeclarations(), and Scan().
| method_iterator clang::ObjCContainerDecl::meth_begin | ( | ) | const [inline] |
Definition at line 460 of file DeclObjC.h.
References clang::DeclContext::decls_begin().
Referenced by AddObjCMethods(), AddObjCProperties(), clang::Sema::DiagnoseClassExtensionDupMethods(), FindImplementableMethods(), and PassObjCImplDeclToConsumer().
| method_iterator clang::ObjCContainerDecl::meth_end | ( | ) | const [inline] |
Definition at line 463 of file DeclObjC.h.
References clang::DeclContext::decls_end().
Referenced by AddObjCMethods(), AddObjCProperties(), clang::Sema::DiagnoseClassExtensionDupMethods(), FindImplementableMethods(), and PassObjCImplDeclToConsumer().
| prop_iterator clang::ObjCContainerDecl::prop_begin | ( | ) | const [inline] |
Definition at line 451 of file DeclObjC.h.
References clang::DeclContext::decls_begin().
Referenced by AddObjCProperties(), clang::Sema::AtomicPropertySetterGetterRules(), clang::Sema::ComparePropertiesInBaseAndSuper(), and clang::Sema::MatchOneProtocolPropertiesInClass().
| prop_iterator clang::ObjCContainerDecl::prop_end | ( | ) | const [inline] |
Definition at line 454 of file DeclObjC.h.
References clang::DeclContext::decls_end().
Referenced by AddObjCProperties(), clang::Sema::AtomicPropertySetterGetterRules(), clang::Sema::ComparePropertiesInBaseAndSuper(), and clang::Sema::MatchOneProtocolPropertiesInClass().
| void clang::ObjCContainerDecl::setAtEndRange | ( | SourceRange | atEnd | ) | [inline] |
Definition at line 506 of file DeclObjC.h.
Referenced by clang::ASTDeclReader::VisitObjCContainerDecl().
| void clang::ObjCContainerDecl::setAtStartLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 500 of file DeclObjC.h.
Referenced by clang::ASTDeclReader::VisitObjCContainerDecl().