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
564 // There is no way to qualify a name declared in a function or method.
664 else if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(ND))
665 T = Method->getSendResultType();
749 // If this is an Objective-C method declaration whose selector matches our
752 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
753 if (PreferredSelector == Method->getSelector())
994 if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(R.Declaration))
995 if (Method->isInstance()) {
997 = Qualifiers::fromCVRMask(Method->getTypeQualifiers());
1001 // The method cannot be invoked, because doing so would drop
1786 else if (ObjCMethodDecl *Method
1788 isVoid = Method->getReturnType()->isVoidType();
1999 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
2001 if (ObjCInterfaceDecl *ID = Method->getClassInterface())
2005 if (Method->isInstanceMethod())
2070 else if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(ND))
2071 T = Method->getReturnType();
2547 // GetterName is the getter method for a property with name
2728 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(ND)) {
2729 Selector Sel = Method->getSelector();
2745 if (Method->param_size() == 1)
2749 for (ObjCMethodDecl::param_const_iterator P = Method->param_begin(),
2750 PEnd = Method->param_end();
2782 if (Method->isVariadic() && (P + 1) == PEnd)
2793 if (Method->isVariadic()) {
2794 if (Method->param_size() == 0) {
2803 MaybeAddSentinel(Ctx, Method, Result);
3149 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
3150 if (!Method || !Method->isVirtual())
3155 for (auto P : Method->params())
3160 for (CXXMethodDecl::method_iterator M = Method->begin_overridden_methods(),
3161 MEnd = Method->end_overridden_methods();
3166 if (Overridden->getCanonicalDecl() == Method->getCanonicalDecl())
3187 for (auto P : Method->params()) {
4087 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext))
4088 ResultType = Method->getReturnType();
4859 Setter.AddPlaceholderChunk("method");
4867 Getter.AddPlaceholderChunk("method");
4876 /// \brief Describes the kind of Objective-C method that we want to find
4879 MK_Any, ///< Any kind of method, provided it means other specified criteria.
4908 static bool isAcceptableObjCMethod(ObjCMethodDecl *Method,
4912 return isAcceptableObjCSelector(Method->getSelector(), WantKind, SelIdents,
4938 /// \param AllowSameLength Whether we allow a method to be added to the list
4961 // subset of the identifiers for this particular method.
5120 // If we're completing the return type of an Objective-C method and the
5180 ObjCMethodDecl *Method = Msg->getMethodDecl();
5181 if (!Method)
5209 if (Method->isInstanceMethod())
5248 /// \returns the Objective-C method declaration that would be invoked by
5262 // Try to find a superclass method with the same selector.
5282 // Check whether the superclass method has the same signature.
5301 // We have a superclass method. Now, form the send-to-super completion.
5368 // If we are in an Objective-C method inside a class that has a superclass,
5370 if (ObjCMethodDecl *Method = getCurMethodDecl())
5371 if (ObjCInterfaceDecl *Iface = Method->getClassInterface())
5406 // We are inside an instance method, which means that the message
5407 // send [super ...] is actually calling an instance method on the
5468 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
5469 if (NumSelIdents <= Method->param_size()) {
5470 QualType MyPreferredType = Method->parameters()[NumSelIdents - 1]
5517 // If we're inside an Objective-C method definition, prefer its selector to
5530 // If we have an external source, load the entire class method
5582 // Determine whether we have a single, best method. If so, we can
5659 // If we're inside an Objective-C method definition, prefer its selector to
5668 // method, so we treat it the same way we would treat a message send to a
5669 // class method.
5704 // If we have an external source, load the entire class method
5742 // Determine whether we have a single, best method. If so, we can
5778 // If we have an external source, load the entire class method
6947 // Determine the return type of the method we're declaring, if
6997 ObjCMethodDecl *Method = M->second.getPointer();
7004 AddObjCPassingTypeChunk(Method->getReturnType(),
7005 Method->getObjCDeclQualifier(), Context, Policy,
7008 Selector Sel = Method->getSelector();
7016 for (ObjCMethodDecl::param_iterator P = Method->param_begin(),
7017 PEnd = Method->param_end();
7039 if (Method->isVariadic()) {
7040 if (Method->param_size() > 0)
7046 // We will be defining the method here, so add a compound statement.
7050 if (!Method->getReturnType()->isVoidType()) {
7067 Results.AddResult(Result(Builder.TakeString(), Method, Priority));
7110 // If we have an external source, load the entire class method