Home | History | Annotate | Download | only in Sema

Lines Matching defs:Container

42   /// \brief A container of code-completion results.
3438 /// \brief Retrieve the container definition, if any?
3439 static ObjCContainerDecl *getContainerDef(ObjCContainerDecl *Container) {
3440 if (ObjCInterfaceDecl *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
3447 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
3453 return Container;
3456 static void AddObjCProperties(ObjCContainerDecl *Container,
3465 Container = getContainerDef(Container);
3467 // Add properties in this container.
3468 for (const auto *P : Container->properties())
3475 ASTContext &Context = Container->getASTContext();
3477 for (auto *M : Container->methods()) {
3496 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
3500 } else if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)){
3519 = dyn_cast<ObjCCategoryDecl>(Container)) {
4778 /// container to the set of results.
4780 /// The container will be a class, protocol, category, or implementation of
4785 /// \param Container the container in which we'll look to find methods.
4797 static void AddObjCMethods(ObjCContainerDecl *Container,
4807 Container = getContainerDef(Container);
4808 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container);
4810 for (auto *M : Container->methods()) {
4833 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
5920 ObjCContainerDecl *Container
5922 if (!Container ||
5923 (!isa<ObjCImplementationDecl>(Container) &&
5924 !isa<ObjCCategoryImplDecl>(Container)))
5928 Container = getContainerDef(Container);
5929 for (const auto *D : Container->decls())
5937 = dyn_cast<ObjCImplementationDecl>(Container))
5942 AddObjCProperties(cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl(),
5960 ObjCContainerDecl *Container
5962 if (!Container ||
5963 (!isa<ObjCImplementationDecl>(Container) &&
5964 !isa<ObjCCategoryImplDecl>(Container)))
5970 = dyn_cast<ObjCImplementationDecl>(Container))
5973 Class = cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl()
6050 /// \brief Find all of the methods that reside in the given container
6055 ObjCContainerDecl *Container,
6060 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)) {
6066 Container = IFace;
6089 if (ObjCCategoryDecl *Category = dyn_cast<ObjCCategoryDecl>(Container)) {
6106 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
6111 Container = Protocol;
6123 // Add methods in this container. This operation occurs last because
6124 // we want the methods from this container to override any methods
6126 for (auto *M : Container->methods()) {