Lines Matching defs:FD
73 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
74 if (FD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation)
242 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
244 if (const FunctionTemplateDecl *FTD = FD->getDescribedFunctionTemplate())
248 if (FD->getTemplateSpecializationKind() != TSK_ImplicitInstantiation)
252 if (const FunctionTemplateDecl *FTD = FD->getPrimaryTemplate())
257 FD->getInstantiatedFromMemberFunction())
1082 const FunctionDecl *FD){
1083 assert(FD && "Specialization is 0");
1085 = ClassScopeSpecializationPattern.find(FD);
1092 void ASTContext::setClassScopeSpecializationPattern(FunctionDecl *FD,
1094 assert(FD && "Specialization is 0");
1096 ClassScopeSpecializationPattern[FD] = Pattern;
2070 void ASTContext::adjustDeducedFunctionResultType(FunctionDecl *FD,
2072 FD = FD->getMostRecentDecl();
2074 const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>();
2076 FD->setType(getFunctionType(ResultType, FPT->getArgTypes(), EPI));
2077 if (FunctionDecl *Next = FD->getPreviousDecl())
2078 FD = Next;
2083 L->DeducedReturnType(FD, ResultType);
5099 QualType T, const FieldDecl *FD) {
5100 assert(FD->isBitField() && "not a bitfield - getObjCEncodingForTypeImpl");
5118 const RecordDecl *RD = FD->getParent();
5120 S += llvm::utostr(RL.getFieldOffset(FD->getFieldIndex()));
5128 S += llvm::utostr(FD->getBitWidthValue(*Ctx));
5135 const FieldDecl *FD,
5146 if (FD && FD->isBitField())
5147 return EncodeBitField(this, S, T, FD);
5251 false, ExpandStructures, FD);
5265 false, ExpandStructures, FD);
5297 getObjCEncodingForStructureImpl(RDecl, S, FD);
5302 if (FD) {
5316 FD, /*OutermostType*/false,
5337 FD,
5352 FD,
5386 getObjCEncodingForTypeImpl(Field->getType(), S, false, true, FD,
5412 ExpandStructures, FD);
5413 if (FD || EncodingProperty || EncodeClassNames) {
5436 if (FD && OPT->getInterfaceDecl()) {
5442 if (cast<FieldDecl>(Ivars[i]) == FD) {
5460 (FD || EncodingProperty || EncodeClassNames)) {
5507 const FieldDecl *FD,
5569 if (FD) {
5611 getObjCEncodingForStructureImpl(base, S, FD, /*includeVBases*/false);
5616 if (FD) {
5628 getObjCEncodingForTypeImpl(qt, S, false, true, FD,
7501 void ASTMutationListener::DeducedReturnType(const FunctionDecl *FD,
7803 GVALinkage ASTContext::GetGVALinkageForFunction(const FunctionDecl *FD) {
7804 if (!FD->isExternallyVisible())
7808 switch (FD->getTemplateSpecializationKind()) {
7823 if (!FD->isInlined())
7827 FD->hasAttr<GNUInlineAttr>()) {
7830 if (FD->isInlineDefinitionExternallyVisible())
7843 if (FD->getTemplateSpecializationKind()
7884 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
7886 if (FD->getTemplatedKind() == FunctionDecl::TK_FunctionTemplate)
7903 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
7905 if (!FD->doesThisDeclarationHaveABody())
7906 return FD->doesDeclarationForceExternallyVisibleDefinition();
7909 if (FD->hasAttr<ConstructorAttr>() || FD->hasAttr<DestructorAttr>())
7915 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) {
7925 GVALinkage Linkage = GetGVALinkageForFunction(FD);