Lines Matching defs:FD

132       } else if (const FieldDecl *FD = getAsField(Path[I])) {
133 Type = FD->getType();
242 if (const FieldDecl *FD = dyn_cast<FieldDecl>(D)) {
243 MostDerivedType = FD->getType();
1282 if (const auto *FD = dyn_cast<const FunctionDecl>(VD)) {
1293 if (Info.getLangOpts().CPlusPlus && FD->hasAttr<DLLImportAttr>())
1535 APValue &Value, const FieldDecl *FD) {
1536 assert(FD->isBitField() && "truncateBitfieldValue on non-bitfield");
1549 unsigned NewBitWidth = FD->getBitWidthValue(Info.Ctx);
1837 const FieldDecl *FD,
1840 if (FD->getParent()->isInvalidDecl()) return false;
1841 RL = &Info.Ctx.getASTRecordLayout(FD->getParent());
1844 unsigned I = FD->getFieldIndex();
1846 LVal.addDecl(Info, E, FD);
2386 if (const FieldDecl *FD = getAsField(A.Entries[I]))
2388 ObjType = FD->getType();
3041 if (const FieldDecl *FD = dyn_cast<FieldDecl>(MemPtr.getDecl())) {
3042 if (!HandleLValueMember(Info, RHS, LV, FD))
3714 FieldDecl *FD = nullptr;
3729 } else if ((FD = I->getMember())) {
3730 if (!HandleLValueMember(Info, I->getInit(), Subobject, FD, &Layout))
3733 Result = APValue(FD);
3736 Value = &Result.getStructField(FD->getFieldIndex());
3742 FD = cast<FieldDecl>(C);
3743 CXXRecordDecl *CD = cast<CXXRecordDecl>(FD->getParent());
3750 (Value->isUnion() && Value->getUnionField() != FD)) {
3752 *Value = APValue(FD);
3757 if (!HandleLValueMember(Info, I->getInit(), Subobject, FD))
3762 Value = &Value->getStructField(FD->getFieldIndex());
3770 (FD && FD->isBitField() && !truncateBitfieldValue(Info, I->getInit(),
3771 *Value, FD))) {
3981 const FunctionDecl *FD = nullptr;
4004 FD = dyn_cast<FunctionDecl>(Member);
4005 if (!FD)
4014 FD = dyn_cast_or_null<FunctionDecl>(
4016 if (!FD)
4021 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD);
4036 if (!Info.Ctx.hasSameType(CalleeType->getPointeeType(), FD->getType()))
4047 isa<CXXMethodDecl>(FD) && cast<CXXMethodDecl>(FD)->isVirtual())
4051 Stmt *Body = FD->getBody(Definition);
4054 if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition) ||
4092 const FieldDecl *FD = dyn_cast<FieldDecl>(E->getMemberDecl());
4093 if (!FD) return Error(E);
4094 assert(!FD->getType()->isReferenceType() && "prvalue reference?");
4096 FD->getParent()->getCanonicalDecl() && "record / field mismatch");
4100 Designator.addDeclUnchecked(FD);
4247 if (const FieldDecl *FD = dyn_cast<FieldDecl>(E->getMemberDecl())) {
4249 FD->getParent()->getCanonicalDecl() && "record / field mismatch");
4251 if (!HandleLValueMember(this->Info, E, Result, FD))
4394 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(E->getDecl()))
4395 return Success(FD);
5129 const CXXConstructorDecl *FD = E->getConstructor();
5130 if (FD->isInvalidDecl() || FD->getParent()->isInvalidDecl()) return false;
5133 if (CheckTrivialDefaultConstructor(Info, E->getExprLoc(), FD, ZeroInit)) {
5150 FD->getBody(Definition);
5152 if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition))
5619 const CXXConstructorDecl *FD = E->getConstructor();
5622 if (CheckTrivialDefaultConstructor(Info, E->getExprLoc(), FD, ZeroInit)) {
5632 FD->getBody(Definition);
5634 if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition))
8752 bool Expr::isPotentialConstantExpr(const FunctionDecl *FD,
8758 if (FD->isDependentContext())
8764 EvalInfo Info(FD->getASTContext(), Status,
8767 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD);
8778 SourceLocation Loc = FD->getLocation();
8781 if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(FD)) {
8787 HandleFunctionCall(Loc, FD, (MD && MD->isInstance()) ? &This : nullptr,
8788 Args, FD->getBody(), Info, Scratch);
8794 const FunctionDecl *FD,
8800 EvalInfo Info(FD->getASTContext(), Status,
8810 CallStackFrame Frame(Info, SourceLocation(), FD, nullptr, ArgValues.data());