Home | History | Annotate | Download | only in AST

Lines Matching refs:FD

83   if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
84 if (FD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation)
264 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
266 if (const FunctionTemplateDecl *FTD = FD->getDescribedFunctionTemplate())
270 if (FD->getTemplateSpecializationKind() != TSK_ImplicitInstantiation)
274 if (const FunctionTemplateDecl *FTD = FD->getPrimaryTemplate())
279 FD->getInstantiatedFromMemberFunction())
1198 const FunctionDecl *FD){
1199 assert(FD && "Specialization is 0");
1201 = ClassScopeSpecializationPattern.find(FD);
1208 void ASTContext::setClassScopeSpecializationPattern(FunctionDecl *FD,
1210 assert(FD && "Specialization is 0");
1212 ClassScopeSpecializationPattern[FD] = Pattern;
2234 void ASTContext::adjustDeducedFunctionResultType(FunctionDecl *FD,
2236 FD = FD->getMostRecentDecl();
2238 const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>();
2240 FD->setType(getFunctionType(ResultType, FPT->getParamTypes(), EPI));
2241 if (FunctionDecl *Next = FD->getPreviousDecl())
2242 FD = Next;
2247 L->DeducedReturnType(FD, ResultType);
2279 FunctionDecl *FD, const FunctionProtoType::ExceptionSpecInfo &ESI,
2283 getFunctionTypeWithExceptionSpec(*this, FD->getType(), ESI);
2284 FD->setType(Updated);
2290 if (TypeSourceInfo *TSInfo = FD->getTypeSourceInfo()) {
2293 if (TSInfo->getType() != FD->getType())
5463 QualType T, const FieldDecl *FD) {
5464 assert(FD->isBitField() && "not a bitfield - getObjCEncodingForTypeImpl");
5482 const RecordDecl *RD = FD->getParent();
5484 S += llvm::utostr(RL.getFieldOffset(FD->getFieldIndex()));
5492 S += llvm::utostr(FD->getBitWidthValue(*Ctx));
5499 const FieldDecl *FD,
5511 if (FD && FD->isBitField())
5512 return EncodeBitField(this, S, T, FD);
5615 false, ExpandStructures, FD);
5629 false, ExpandStructures, FD,
5663 getObjCEncodingForStructureImpl(RDecl, S, FD, true, NotEncodedT);
5666 if (FD) {
5680 FD, /*OutermostType*/false,
5702 FD, false /* OutermostType */, EncodingProperty,
5711 I, S, ExpandPointedToStructures, ExpandStructures, FD,
5748 getObjCEncodingForTypeImpl(Field->getType(), S, false, true, FD,
5775 ExpandStructures, FD);
5776 if (FD || EncodingProperty || EncodeClassNames) {
5798 if (FD && OPT->getInterfaceDecl()) {
5804 if (cast<FieldDecl>(Ivars[i]) == FD) {
5822 (FD || EncodingProperty || EncodeClassNames)) {
5869 const FieldDecl *FD,
5930 if (FD) {
5975 getObjCEncodingForStructureImpl(base, S, FD, /*includeVBases*/false,
5983 if (FD) {
5997 getObjCEncodingForTypeImpl(qt, S, false, true, FD,
7934 void ASTMutationListener::DeducedReturnType(const FunctionDecl *FD,
8258 const FunctionDecl *FD) {
8259 if (!FD->isExternallyVisible())
8263 switch (FD->getTemplateSpecializationKind()) {
8286 if (!FD->isInlined())
8291 !FD->hasAttr<DLLExportAttr>()) ||
8292 FD->hasAttr<GNUInlineAttr>()) {
8297 if (FD->isInlineDefinitionExternallyVisible())
8307 if (FD->isMSExternInline())
8326 GVALinkage ASTContext::GetGVALinkageForFunction(const FunctionDecl *FD) const {
8327 return adjustGVALinkageForAttributes(basicGVALinkageForFunction(*this, FD),
8328 FD);
8399 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
8401 if (FD->getTemplatedKind() == FunctionDecl::TK_FunctionTemplate)
8420 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
8422 if (!FD->doesThisDeclarationHaveABody())
8423 return FD->doesDeclarationForceExternallyVisibleDefinition();
8426 if (FD->hasAttr<ConstructorAttr>() || FD->hasAttr<DestructorAttr>())
8432 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) {
8442 GVALinkage Linkage = GetGVALinkageForFunction(FD);