Lines Matching defs:Method
1452 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn);
1453 if (Method && !Method->isStatic()) {
1460 = S.Context.getTypeDeclType(Method->getParent()).getTypePtr();
4738 /// parameter of the given member function (@c Method) from the
4743 CXXMethodDecl *Method,
4748 unsigned Quals = isa<CXXDestructorDecl>(Method) ?
4749 Qualifiers::Const | Qualifiers::Volatile : Method->getTypeQualifiers();
4810 switch (Method->getRefQualifier()) {
4842 ICS.Standard.IsLvalueReference = Method->getRefQualifier() != RQ_RValue;
4846 = (Method->getRefQualifier() == RQ_None);
4851 /// the implicit object parameter for the given Method with the given
4857 CXXMethodDecl *Method) {
4860 Method->getThisType(Context)->getAs<PointerType>()->getPointeeType();
4865 DestType = Method->getThisType(Context);
4876 *this, From->getType(), FromClassification, Method, Method->getParent());
4885 << Method->getDeclName() << FromRecordType << (CVR - 1)
4887 Diag(Method->getLocation(), diag::note_previous_decl)
4888 << Method->getDeclName();
4900 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method);
5598 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Function)) {
5599 if (!isa<CXXConstructorDecl>(Method)) {
5607 AddMethodCandidate(Method, FoundDecl, Method->getParent(),
5749 ObjCMethodDecl *Method = Methods[b];
5751 // Method might have more arguments than selector indicates. This is due
5752 // to addition of c-style arguments in method.
5753 if (Method->param_size() > NumNamedArgs)
5754 NumNamedArgs = Method->param_size();
5765 ParmVarDecl *param = Method->parameters()[i];
5775 // If the parameter is __unknown_anytype, move on to the next method.
5794 if (Match && Method->isVariadic()) {
5823 return Method;
5853 CXXMethodDecl *Method = cast<CXXMethodDecl>(Function);
5856 Method, Method);
5942 /// method) as a method candidate to the given overload set.
5979 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl,
5987 = dyn_cast<FunctionProtoType>(Method->getType()->getAs<FunctionType>());
5989 assert(!isa<CXXConstructorDecl>(Method) &&
5992 if (!CandidateSet.isNewCandidate(Method))
5998 if (Method->isDefaulted() && Method->isDeleted() &&
5999 Method->isMoveAssignmentOperator())
6008 Candidate.Function = Method;
6030 unsigned MinRequiredArgs = Method->getMinRequiredArguments();
6040 if (Method->isStatic() || ObjectType.isNull())
6048 Method, ActingContext);
6059 if (CheckCUDATarget(Caller, Method)) {
6093 if (EnableIfAttr *FailedAttr = CheckEnableIf(Method, Args, true)) {
7045 /// the process, as well as a helper method to add each group of builtin
7057 // provided via the getArithmeticType() method below.
7162 /// \brief Helper method to factor out the common pattern of adding overloads
8692 // non-constructor method. Note that 'I' corresponds the
9885 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn))
9886 if (!Method->isStatic()) {
9935 if (CXXMethodDecl *Method
9939 if (Method->isStatic() == TargetTypeIsNonStaticMemberFunction)
9978 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
9981 if (Method->isStatic() == TargetTypeIsNonStaticMemberFunction)
10338 // It is only correct to resolve to an instance method if we're
10975 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
10980 Best->FoundDecl, Method);
11187 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
11201 Best->FoundDecl, Method);
11334 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
11336 << Context.getRecordType(Method->getParent())
11337 << getSpecialMember(Method);
11341 NoteDeletedFunction(Method);
11421 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl);
11424 Best->FoundDecl, Method);
11607 CXXMethodDecl *Method = nullptr;
11612 Method = cast<CXXMethodDecl>(MemExpr->getMemberDecl());
11649 } else if ((Method = dyn_cast<CXXMethodDecl>(Func))) {
11655 AddMethodCandidate(Method, I.getPair(), ActingDC, ObjectType,
11675 Method = cast<CXXMethodDecl>(Best->Function);
11680 // If FoundDecl is different from Method (such as if one is a template
11686 if (Method != FoundDecl.getDecl() &&
11687 DiagnoseUseOfDecl(Method, UnresExpr->getNameLoc()))
11717 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method);
11721 if (Method->isStatic()) {
11722 return BuildResolvedCallExpr(MemExprE, Method, LParenLoc, Args,
11729 QualType ResultType = Method->getReturnType();
11733 assert(Method && "Member call to something that isn't a method?");
11741 if (CheckCUDATarget(Caller, Method)) {
11743 << IdentifyCUDATarget(Method) << Method->getIdentifier()
11751 if (CheckCallReturnType(Method->getReturnType(), MemExpr->getMemberLoc(),
11752 TheCall, Method))
11758 if (!Method->isStatic()) {
11761 FoundDecl, Method);
11769 Method->getType()->getAs<FunctionProtoType>();
11770 if (ConvertArgumentsForCall(TheCall, MemExpr, Method, Proto, Args,
11774 DiagnoseSentinelCalls(Method, LParenLoc, Args);
11776 if (CheckFunctionCall(Method, TheCall, Proto))
11970 // that calls this method, using Object for the implicit object
11972 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
11975 if (Method->isInvalidDecl())
11979 Method->getType()->getAs<FunctionProtoType>();
11986 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
11993 // Build the full argument list for the method call (the implicit object
12001 QualType ResultTy = Method->getReturnType();
12011 if (CheckCallReturnType(Method->getReturnType(), LParenLoc, TheCall, Method))
12024 Best->FoundDecl, Method);
12042 Method->getParamDecl(i)),
12049 = BuildCXXDefaultArgExpr(LParenLoc, Method, Method->getParamDecl(i));
12074 DiagnoseSentinelCalls(Method, LParenLoc, Args);
12076 if (CheckFunctionCall(Method, TheCall, Proto))
12170 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
12173 Best->FoundDecl, Method);
12179 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
12184 QualType ResultTy = Method->getReturnType();
12191 if (CheckCallReturnType(Method->getReturnType(), OpLoc, TheCall, Method))
12380 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
12381 if (Method->isStatic()) {
12402 = Context.getTypeDeclType(cast<RecordDecl>(Method->getDeclContext()));
12455 // If we're filling in a static method where we used to have an