Lines Matching refs:Method
1091 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn);
1092 if (Method && !Method->isStatic()) {
1099 = S.Context.getTypeDeclType(Method->getParent()).getTypePtr();
3651 /// parameter of the given member function (@c Method) from the
3656 CXXMethodDecl *Method,
3661 unsigned Quals = isa<CXXDestructorDecl>(Method) ?
3662 Qualifiers::Const | Qualifiers::Volatile : Method->getTypeQualifiers();
3724 switch (Method->getRefQualifier()) {
3756 ICS.Standard.IsLvalueReference = Method->getRefQualifier() != RQ_RValue;
3760 = (Method->getRefQualifier() == RQ_None);
3765 /// the implicit object parameter for the given Method with the given
3771 CXXMethodDecl *Method) {
3774 Method->getThisType(Context)->getAs<PointerType>()->getPointeeType();
3779 DestType = Method->getThisType(Context);
3791 Method, Method->getParent());
3800 << Method->getDeclName() << FromRecordType << (CVR - 1)
3802 Diag(Method->getLocation(), diag::note_previous_decl)
3803 << Method->getDeclName();
3815 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method);
4075 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Function)) {
4076 if (!isa<CXXConstructorDecl>(Method)) {
4084 AddMethodCandidate(Method, FoundDecl, Method->getParent(),
4217 /// method) as a method candidate to the given overload set.
4253 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl,
4260 = dyn_cast<FunctionProtoType>(Method->getType()->getAs<FunctionType>());
4262 assert(!isa<CXXConstructorDecl>(Method) &&
4265 if (!CandidateSet.isNewCandidate(Method))
4275 Candidate.Function = Method;
4296 unsigned MinRequiredArgs = Method->getMinRequiredArguments();
4307 if (Method->isStatic() || ObjectType.isNull())
4315 Method, ActingContext);
5224 /// the process, as well as a helper method to add each group of builtin
5237 // provided via the getArithmeticType() method below.
5336 /// \brief Helper method to factor out the common pattern of adding overloads
6669 && "implicit method is not copy assignment operator?");
6821 // non-constructor method. Note that 'I' corresponds the
7628 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
7629 if (!Method->isStatic()) {
7680 if (CXXMethodDecl *Method
7684 if (Method->isStatic() == TargetTypeIsNonStaticMemberFunction)
7719 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
7722 if (Method->isStatic() == TargetTypeIsNonStaticMemberFunction)
8015 // It is only correct to resolve to an instance method if we're
8515 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
8520 Best->FoundDecl, Method);
8763 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
8777 Best->FoundDecl, Method);
8976 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl);
8979 Best->FoundDecl, Method);
9144 CXXMethodDecl *Method = 0;
9149 Method = cast<CXXMethodDecl>(MemExpr->getMemberDecl());
9184 } else if ((Method = dyn_cast<CXXMethodDecl>(Func))) {
9190 AddMethodCandidate(Method, I.getPair(), ActingDC, ObjectType,
9209 Method = cast<CXXMethodDecl>(Best->Function);
9210 MarkDeclarationReferenced(UnresExpr->getMemberLoc(), Method);
9242 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method);
9246 if (Method->isStatic()) {
9247 return BuildResolvedCallExpr(MemExprE, Method, LParenLoc,
9254 QualType ResultType = Method->getResultType();
9258 assert(Method && "Member call to something that isn't a method?");
9264 if (CheckCallReturnType(Method->getResultType(), MemExpr->getMemberLoc(),
9265 TheCall, Method))
9271 if (!Method->isStatic()) {
9274 FoundDecl, Method);
9282 Method->getType()->getAs<FunctionProtoType>();
9283 if (ConvertArgumentsForCall(TheCall, MemExpr, Method, Proto, Args, NumArgs,
9287 if (CheckFunctionCall(Method, TheCall))
9467 // that calls this method, using Object for the implicit object
9469 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
9471 Method->getType()->getAs<FunctionProtoType>();
9476 // Build the full argument list for the method call (the
9490 ExprResult NewFn = CreateFunctionRefExpr(*this, Method);
9496 QualType ResultTy = Method->getResultType();
9506 if (CheckCallReturnType(Method->getResultType(), LParenLoc, TheCall,
9507 Method))
9522 Best->FoundDecl, Method);
9540 Method->getParamDecl(i)),
9547 = BuildCXXDefaultArgExpr(LParenLoc, Method, Method->getParamDecl(i));
9571 if (CheckFunctionCall(Method, TheCall))
9658 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
9661 Best->FoundDecl, Method);
9667 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method);
9671 QualType ResultTy = Method->getResultType();
9678 if (CheckCallReturnType(Method->getResultType(), OpLoc, TheCall,
9679 Method))
9720 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn)) {
9721 if (Method->isStatic()) {
9742 = Context.getTypeDeclType(cast<RecordDecl>(Method->getDeclContext()));
9790 // If we're filling in a static method where we used to have an