Home | History | Annotate | Download | only in Sema

Lines Matching refs:Method

1489       CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn);
1490 if (Method && !Method->isStatic()) {
1497 = S.Context.getTypeDeclType(Method->getParent()).getTypePtr();
4797 /// parameter of the given member function (@c Method) from the
4802 CXXMethodDecl *Method,
4807 unsigned Quals = isa<CXXDestructorDecl>(Method) ?
4808 Qualifiers::Const | Qualifiers::Volatile : Method->getTypeQualifiers();
4869 switch (Method->getRefQualifier()) {
4901 ICS.Standard.IsLvalueReference = Method->getRefQualifier() != RQ_RValue;
4905 = (Method->getRefQualifier() == RQ_None);
4910 /// the implicit object parameter for the given Method with the given
4916 CXXMethodDecl *Method) {
4919 Method->getThisType(Context)->getAs<PointerType>()->getPointeeType();
4924 DestType = Method->getThisType(Context);
4935 *this, From->getLocStart(), From->getType(), FromClassification, Method,
4936 Method->getParent());
4945 << Method->getDeclName() << FromRecordType << (CVR - 1)
4947 Diag(Method->getLocation(), diag::note_previous_decl)
4948 << Method->getDeclName();
4960 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method);
5660 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Function)) {
5661 if (!isa<CXXConstructorDecl>(Method)) {
5669 AddMethodCandidate(Method, FoundDecl, Method->getParent(),
5811 ObjCMethodDecl *Method = Methods[b];
5813 // Method might have more arguments than selector indicates. This is due
5814 // to addition of c-style arguments in method.
5815 if (Method->param_size() > NumNamedArgs)
5816 NumNamedArgs = Method->param_size();
5827 ParmVarDecl *param = Method->parameters()[i];
5837 // If the parameter is __unknown_anytype, move on to the next method.
5856 if (Match && Method->isVariadic()) {
5885 return Method;
5924 CXXMethodDecl *Method = cast<CXXMethodDecl>(Function);
5927 Method, Method);
6034 /// method) as a method candidate to the given overload set.
6071 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl,
6079 = dyn_cast<FunctionProtoType>(Method->getType()->getAs<FunctionType>());
6081 assert(!isa<CXXConstructorDecl>(Method) &&
6084 if (!CandidateSet.isNewCandidate(Method))
6090 if (Method->isDefaulted() && Method->isDeleted() &&
6091 Method->isMoveAssignmentOperator())
6100 Candidate.Function = Method;
6122 unsigned MinRequiredArgs = Method->getMinRequiredArguments();
6132 if (Method->isStatic() || ObjectType.isNull())
6140 Method, ActingContext);
6151 if (CheckCUDATarget(Caller, Method)) {
6185 if (EnableIfAttr *FailedAttr = CheckEnableIf(Method, Args, true)) {
7137 /// the process, as well as a helper method to add each group of builtin
7149 // provided via the getArithmeticType() method below.
7254 /// \brief Helper method to factor out the common pattern of adding overloads
8950 // non-constructor method. Note that 'I' corresponds the
10160 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn))
10161 if (!Method->isStatic()) {
10246 if (CXXMethodDecl *Method
10250 if (Method->isStatic() == TargetTypeIsNonStaticMemberFunction)
10293 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
10296 if (Method->isStatic() == TargetTypeIsNonStaticMemberFunction)
10669 // It is only correct to resolve to an instance method if we're
11326 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
11331 Best->FoundDecl, Method);
11536 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
11550 Best->FoundDecl, Method);
11683 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
11685 << Context.getRecordType(Method->getParent())
11686 << getSpecialMember(Method);
11690 NoteDeletedFunction(Method);
11770 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl);
11773 Best->FoundDecl, Method);
11952 CXXMethodDecl *Method = nullptr;
11957 Method = cast<CXXMethodDecl>(MemExpr->getMemberDecl());
11994 } else if ((Method = dyn_cast<CXXMethodDecl>(Func))) {
12000 AddMethodCandidate(Method, I.getPair(), ActingDC, ObjectType,
12020 Method = cast<CXXMethodDecl>(Best->Function);
12025 // If FoundDecl is different from Method (such as if one is a template
12031 if (Method != FoundDecl.getDecl() &&
12032 DiagnoseUseOfDecl(Method, UnresExpr->getNameLoc()))
12062 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method);
12066 if (Method->isStatic()) {
12067 return BuildResolvedCallExpr(MemExprE, Method, LParenLoc, Args,
12074 QualType ResultType = Method->getReturnType();
12078 assert(Method && "Member call to something that isn't a method?");
12086 if (CheckCUDATarget(Caller, Method)) {
12088 << IdentifyCUDATarget(Method) << Method->getIdentifier()
12096 if (CheckCallReturnType(Method->getReturnType(), MemExpr->getMemberLoc(),
12097 TheCall, Method))
12103 if (!Method->isStatic()) {
12106 FoundDecl, Method);
12114 Method->getType()->getAs<FunctionProtoType>();
12115 if (ConvertArgumentsForCall(TheCall, MemExpr, Method, Proto, Args,
12119 DiagnoseSentinelCalls(Method, LParenLoc, Args);
12121 if (CheckFunctionCall(Method, TheCall, Proto))
12124 // In the case the method to call was not selected by the overloading
12128 if (const EnableIfAttr *Attr = CheckEnableIf(Method, Args, true)) {
12131 << Method << Method->getSourceRange();
12132 Diag(Method->getLocation(),
12336 // that calls this method, using Object for the implicit object
12338 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
12341 if (Method->isInvalidDecl())
12345 Method->getType()->getAs<FunctionProtoType>();
12352 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
12359 // Build the full argument list for the method call (the implicit object
12367 QualType ResultTy = Method->getReturnType();
12377 if (CheckCallReturnType(Method->getReturnType(), LParenLoc, TheCall, Method))
12390 Best->FoundDecl, Method);
12408 Method->getParamDecl(i)),
12415 = BuildCXXDefaultArgExpr(LParenLoc, Method, Method->getParamDecl(i));
12440 DiagnoseSentinelCalls(Method, LParenLoc, Args);
12442 if (CheckFunctionCall(Method, TheCall, Proto))
12536 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
12539 Best->FoundDecl, Method);
12545 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
12550 QualType ResultTy = Method->getReturnType();
12557 if (CheckCallReturnType(Method->getReturnType(), OpLoc, TheCall, Method))
12741 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
12742 if (Method->isStatic()) {
12763 = Context.getTypeDeclType(cast<RecordDecl>(Method->getDeclContext()));
12816 // If we're filling in a static method where we used to have an