Home | History | Annotate | Download | only in Sema

Lines Matching refs:Container

42   /// \brief A container of code-completion results.
3545 /// \brief Retrieve the container definition, if any?
3546 static ObjCContainerDecl *getContainerDef(ObjCContainerDecl *Container) {
3547 if (ObjCInterfaceDecl *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
3554 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
3560 return Container;
3564 ObjCContainerDecl *Container,
3573 Container = getContainerDef(Container);
3575 // Add properties in this container.
3576 for (const auto *P : Container->properties())
3583 ASTContext &Context = Container->getASTContext();
3585 for (auto *M : Container->methods()) {
3605 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
3609 } else if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)){
3628 = dyn_cast<ObjCCategoryDecl>(Container)) {
4995 /// container to the set of results.
4997 /// The container will be a class, protocol, category, or implementation of
5002 /// \param Container the container in which we'll look to find methods.
5014 static void AddObjCMethods(ObjCContainerDecl *Container,
5024 Container = getContainerDef(Container);
5025 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container);
5027 for (auto *M : Container->methods()) {
5050 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
6144 ObjCContainerDecl *Container
6146 if (!Container ||
6147 (!isa<ObjCImplementationDecl>(Container) &&
6148 !isa<ObjCCategoryImplDecl>(Container)))
6152 Container = getContainerDef(Container);
6153 for (const auto *D : Container->decls())
6161 = dyn_cast<ObjCImplementationDecl>(Container))
6167 cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl(),
6185 ObjCContainerDecl *Container
6187 if (!Container ||
6188 (!isa<ObjCImplementationDecl>(Container) &&
6189 !isa<ObjCCategoryImplDecl>(Container)))
6195 = dyn_cast<ObjCImplementationDecl>(Container))
6198 Class = cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl()
6275 /// \brief Find all of the methods that reside in the given container
6280 ObjCContainerDecl *Container,
6285 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)) {
6291 Container = IFace;
6314 if (ObjCCategoryDecl *Category = dyn_cast<ObjCCategoryDecl>(Container)) {
6331 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
6336 Container = Protocol;
6348 // Add methods in this container. This operation occurs last because
6349 // we want the methods from this container to override any methods
6351 for (auto *M : Container->methods()) {