Home | History | Annotate | Download | only in Sema

Lines Matching defs:Method

163     /// \brief If we are in an instance method definition, the \@implementation
182 // If this is an Objective-C instance method definition, dig out the
190 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl())
191 if (Method->isInstanceMethod())
192 if (ObjCInterfaceDecl *Interface = Method->getClassInterface())
239 /// When an Objective-C method declaration result is added, and that
240 /// method's selector matches this preferred selector, we give that method
565 // There is no way to qualify a name declared in a function or method.
665 else if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(ND))
666 T = Method->getSendResultType();
750 // If this is an Objective-C method declaration whose selector matches our
753 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
754 if (PreferredSelector == Method->getSelector())
995 if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(R.Declaration))
996 if (Method->isInstance()) {
998 = Qualifiers::fromCVRMask(Method->getTypeQualifiers());
1002 // The method cannot be invoked, because doing so would drop
1787 else if (ObjCMethodDecl *Method
1789 isVoid = Method->getReturnType()->isVoidType();
2000 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
2002 if (ObjCInterfaceDecl *ID = Method->getClassInterface())
2006 if (Method->isInstanceMethod())
2071 else if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(ND))
2072 T = Method->getReturnType();
2544 // GetterName is the getter method for a property with name
2724 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(ND)) {
2725 Selector Sel = Method->getSelector();
2741 if (Method->param_size() == 1)
2745 for (ObjCMethodDecl::param_const_iterator P = Method->param_begin(),
2746 PEnd = Method->param_end();
2778 if (Method->isVariadic() && (P + 1) == PEnd)
2789 if (Method->isVariadic()) {
2790 if (Method->param_size() == 0) {
2799 MaybeAddSentinel(Ctx, Method, Result);
3102 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
3103 if (!Method || !Method->isVirtual())
3108 for (auto P : Method->params())
3113 for (CXXMethodDecl::method_iterator M = Method->begin_overridden_methods(),
3114 MEnd = Method->end_overridden_methods();
3119 if (Overridden->getCanonicalDecl() == Method->getCanonicalDecl())
3140 for (auto P : Method->params()) {
3945 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext))
3946 ResultType = Method->getReturnType();
4714 Setter.AddPlaceholderChunk("method");
4722 Getter.AddPlaceholderChunk("method");
4731 /// \brief Describes the kind of Objective-C method that we want to find
4734 MK_Any, ///< Any kind of method, provided it means other specified criteria.
4763 static bool isAcceptableObjCMethod(ObjCMethodDecl *Method,
4767 return isAcceptableObjCSelector(Method->getSelector(), WantKind, SelIdents,
4793 /// \param AllowSameLength Whether we allow a method to be added to the list
4816 // subset of the identifiers for this particular method.
4975 // If we're completing the return type of an Objective-C method and the
5035 ObjCMethodDecl *Method = Msg->getMethodDecl();
5036 if (!Method)
5064 if (Method->isInstanceMethod())
5103 /// \returns the Objective-C method declaration that would be invoked by
5117 // Try to find a superclass method with the same selector.
5137 // Check whether the superclass method has the same signature.
5156 // We have a superclass method. Now, form the send-to-super completion.
5223 // If we are in an Objective-C method inside a class that has a superclass,
5225 if (ObjCMethodDecl *Method = getCurMethodDecl())
5226 if (ObjCInterfaceDecl *Iface = Method->getClassInterface())
5261 // We are inside an instance method, which means that the message
5262 // send [super ...] is actually calling an instance method on the
5323 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
5324 if (NumSelIdents <= Method->param_size()) {
5325 QualType MyPreferredType = Method->parameters()[NumSelIdents - 1]
5372 // If we're inside an Objective-C method definition, prefer its selector to
5385 // If we have an external source, load the entire class method
5403 MethList && MethList->Method;
5405 if (!isAcceptableObjCMethod(MethList->Method, MK_Any, SelIdents))
5408 Result R(MethList->Method, Results.getBasePriority(MethList->Method),
5437 // Determine whether we have a single, best method. If so, we can
5514 // If we're inside an Objective-C method definition, prefer its selector to
5523 // method, so we treat it the same way we would treat a message send to a
5524 // class method.
5559 // If we have an external source, load the entire class method
5576 MethList && MethList->Method;
5578 if (!isAcceptableObjCMethod(MethList->Method, MK_Any, SelIdents))
5581 if (!Selectors.insert(MethList->Method->getSelector()))
5584 Result R(MethList->Method, Results.getBasePriority(MethList->Method),
5597 // Determine whether we have a single, best method. If so, we can
5633 // If we have an external source, load the entire class method
6797 // Determine the return type of the method we're declaring, if
6847 ObjCMethodDecl *Method = M->second.getPointer();
6854 AddObjCPassingTypeChunk(Method->getReturnType(),
6855 Method->getObjCDeclQualifier(), Context, Policy,
6858 Selector Sel = Method->getSelector();
6866 for (ObjCMethodDecl::param_iterator P = Method->param_begin(),
6867 PEnd = Method->param_end();
6889 if (Method->isVariadic()) {
6890 if (Method->param_size() > 0)
6896 // We will be defining the method here, so add a compound statement.
6900 if (!Method->getReturnType()->isVoidType()) {
6917 Results.AddResult(Result(Builder.TakeString(), Method, Priority));
6960 // If we have an external source, load the entire class method
6988 MethList && MethList->Method;
6990 if (!isAcceptableObjCMethod(MethList->Method, MK_Any, SelIdents))
6996 if (NumSelIdents && NumSelIdents <= MethList->Method->param_size()) {
6997 ParmVarDecl *Param = MethList->Method->parameters()[NumSelIdents-1];
7010 Result R(MethList->Method, Results.getBasePriority(MethList->Method),