Home | History | Annotate | Download | only in Sema

Lines Matching refs:FD

58   if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
59 if (FD->isDeleted())
64 if (getLangOpts().CPlusPlus14 && FD->getReturnType()->isUndeducedType() &&
65 DeduceReturnType(FD, SourceLocation(), /*Diagnose*/ false))
351 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
352 if (FD->isDeleted()) {
353 auto *Ctor = dyn_cast<CXXConstructorDecl>(FD);
360 NoteDeletedFunction(FD);
366 if (getLangOpts().CPlusPlus14 && FD->getReturnType()->isUndeducedType() &&
367 DeduceReturnType(FD, Loc))
396 std::string Sema::getDeletedOrUnavailableSuffix(const FunctionDecl *FD) {
398 if (FD->getAvailability(&Message))
424 } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
425 numFormalParams = FD->param_size();
530 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl()))
531 if (!checkAddressOfFunctionIsAvailable(FD, Diagnose, E->getExprLoc()))
1781 if (FieldDecl *FD = dyn_cast<FieldDecl>(D)) {
1782 UnusedPrivateFields.remove(FD);
1784 if (FD->isBitField())
1981 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(CD))
1983 AddOverloadCandidate(FD, DeclAccessPair::make(FD, AS_none),
3796 if (FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) {
3799 if (!FD->getParent()->isCompleteDefinition()) {
3809 if (!FD->getType()->isReferenceType())
4500 FunctionDecl *FD,
4505 FD << cast<CXXRecordDecl>(FD->getDeclContext())->getDeclName();
4519 = getTemplateInstantiationArgs(FD, nullptr, /*RelativeToPrimary=*/true);
4532 ContextRAII SavedContext(*this, FD);
4566 Diag(Param->getLocStart(), diag::err_recursive_default_argument) << FD;
4658 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(CD))
4659 S.AddOverloadCandidate(FD, DeclAccessPair::make(FD, AS_none), Args,
5234 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(NDecl)) {
5236 !checkAddressOfFunctionIsAvailable(FD, /*Complain=*/true,
5241 // FD, but that doesn't always hold true here. This is because, in some
5246 if (FD->hasAttr<EnableIfAttr>() &&
5247 isNumberOfArgsValidForCall(*this, FD, ArgExprs.size())) {
5248 if (const EnableIfAttr *Attr = CheckEnableIf(FD, ArgExprs, true)) {
5250 isa<CXXMethodDecl>(FD) ?
5253 << FD << FD->getSourceRange();
5254 Diag(FD->getLocation(),
7728 if (FunctionDecl *FD = ResolveAddressOfOverloadedFunction(
7730 RHS = FixOverloadedFunctionReference(RHS.get(), DAP, FD);
8737 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(DC))
8738 return FD->isFunctionTemplateSpecialization();
9676 if (auto *FD = dyn_cast<FunctionDecl>(DC))
9678 FD->getTemplateInstantiationPattern() == var->getDeclContext())
9776 const FunctionDecl *FD = CE->getDirectCallee();
9777 if (FD && !IsTypeModifiable(FD->getReturnType(), IsDereference)) {
9780 << ConstFunction << FD;
9783 S.Diag(FD->getReturnTypeSourceRange().getBegin(),
9785 << ConstFunction << FD << FD->getReturnType()
9786 << FD->getReturnTypeSourceRange();
10396 if (auto *FD = dyn_cast_or_null<FunctionDecl>(dcl))
10397 if (!checkAddressOfFunctionIsAvailable(FD, /*Complain=*/true,
10550 if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(Param->getDeclContext()))
10551 if (!FD->hasAttr<NonNullAttr>() && !Param->hasAttr<NonNullAttr>())
10553 if (FunctionScopeInfo *FD = S.getCurFunction())
10554 if (!FD->ModifiedNonNullParams.count(Param))
10555 FD->ModifiedNonNullParams.insert(Param);
11133 FunctionDecl *FD = OCE->getDirectCallee();
11134 if (!FD || !FD->isOverloadedOperator())
11137 OverloadedOperatorKind Kind = FD->getOverloadedOperator();
12382 auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl());
12383 if (!FD)
12386 return !S.checkAddressOfFunctionIsAvailable(FD,
14066 if (auto *FD = dyn_cast<FunctionDecl>(D)) {
14067 MarkFunctionReferenced(Loc, FD, MightBeOdrUse);
14245 CallExpr *CE, FunctionDecl *FD) {
14257 FunctionDecl *FD;
14261 CallReturnIncompleteDiagnoser(FunctionDecl *FD, CallExpr *CE)
14262 : FD(FD), CE(CE) { }
14265 if (!FD) {
14272 << CE->getSourceRange() << FD->getDeclName() << T;
14273 S.Diag(FD->getLocation(), diag::note_entity_declared_at)
14274 << FD->getDeclName();
14276 } Diagnoser(FD, CE);
14778 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(VD)) {
14796 QualType FDT = FD->getType();
14801 SourceLocation Loc = FD->getLocation();
14802 FunctionDecl *NewFD = FunctionDecl::Create(FD->getASTContext(),
14803 FD->getDeclContext(),
14804 Loc, Loc, FD->getNameInfo().getName(),
14805 DestType, FD->getTypeSourceInfo(),
14807 FD->hasPrototype(),
14810 if (FD->getQualifier())
14811 NewFD->setQualifierInfo(FD->getQualifierLoc());
14816 S.BuildParmVarDeclForTypedef(FD, Loc, AI);
14826 if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
15027 auto *FD = cast<FunctionDecl>(DRE->getDecl());
15028 if (FD->getBuiltinID() == Builtin::BI__noop) {
15029 E = ImpCastExprToType(E, Context.getPointerType(FD->getType()),