• Home
  • Raw
  • Download

Lines Matching refs:NewFD

7161     Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD,  in DiagnoseInvalidRedeclaration()  argument
7163 DeclarationName Name = NewFD->getDeclName(); in DiagnoseInvalidRedeclaration()
7164 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
7171 LookupResult Prev(SemaRef, Name, NewFD->getLocation(), in DiagnoseInvalidRedeclaration()
7176 NewFD->setInvalidDecl(); in DiagnoseInvalidRedeclaration()
7183 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in DiagnoseInvalidRedeclaration()
7189 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration()
7202 SemaRef.Context, NewFD, MD ? MD->getParent() : nullptr), in DiagnoseInvalidRedeclaration()
7214 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration()
7233 NewFD->getTypeSourceInfo(), Previous, ExtraArgs.TemplateParamLists, in DiagnoseInvalidRedeclaration()
7265 SemaRef.Diag(NewFD->getLocation(), DiagMsg) in DiagnoseInvalidRedeclaration()
7266 << Name << NewDC << IsDefinition << NewFD->getLocation(); in DiagnoseInvalidRedeclaration()
7269 if (CXXMethodDecl *NewMD = dyn_cast<CXXMethodDecl>(NewFD)) in DiagnoseInvalidRedeclaration()
7288 << NewFD->getParamDecl(Idx - 1)->getType(); in DiagnoseInvalidRedeclaration()
7343 FunctionDecl *NewFD = nullptr; in CreateNewFunctionDecl() local
7356 NewFD = FunctionDecl::Create(SemaRef.Context, DC, in CreateNewFunctionDecl()
7361 NewFD->setInvalidDecl(); in CreateNewFunctionDecl()
7363 return NewFD; in CreateNewFunctionDecl()
7694 FunctionDecl *NewFD = CreateNewFunctionDecl(*this, D, DC, R, TInfo, SC, in ActOnFunctionDeclarator() local
7696 if (!NewFD) return nullptr; in ActOnFunctionDeclarator()
7699 NewFD->setTopLevelDeclInObjCContainer(); in ActOnFunctionDeclarator()
7704 NewFD->setLexicalDeclContext(CurContext); in ActOnFunctionDeclarator()
7707 NewFD->setLocalExternDecl(); in ActOnFunctionDeclarator()
7720 NewFD->setImplicitlyInline(); in ActOnFunctionDeclarator()
7727 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
7728 if (Parent->isInterface() && cast<CXXMethodDecl>(NewFD)->isUserProvided()) in ActOnFunctionDeclarator()
7729 NewFD->setPure(true); in ActOnFunctionDeclarator()
7737 SetNestedNameSpecifier(NewFD, D); in ActOnFunctionDeclarator()
7741 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7760 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7764 Diag(NewFD->getLocation(), diag::err_destructor_template); in ActOnFunctionDeclarator()
7765 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7778 NewFD->getLocation(), in ActOnFunctionDeclarator()
7780 NewFD); in ActOnFunctionDeclarator()
7782 NewFD->setDescribedFunctionTemplate(FunctionTemplate); in ActOnFunctionDeclarator()
7786 NewFD->setTemplateParameterListsInfo(Context, in ActOnFunctionDeclarator()
7794 NewFD->setTemplateParameterListsInfo(Context, TemplateParamLists); in ActOnFunctionDeclarator()
7824 NewFD->setTemplateParameterListsInfo(Context, TemplateParamLists); in ActOnFunctionDeclarator()
7828 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7838 if (isVirtual && !NewFD->isInvalidDecl()) { in ActOnFunctionDeclarator()
7847 } else if (NewFD->getDescribedFunctionTemplate()) { in ActOnFunctionDeclarator()
7855 NewFD->setVirtualAsWritten(true); in ActOnFunctionDeclarator()
7859 NewFD->getReturnType()->isUndeducedType()) in ActOnFunctionDeclarator()
7864 (NewFD->isDependentContext() || in ActOnFunctionDeclarator()
7866 NewFD->getReturnType()->isUndeducedType()) { in ActOnFunctionDeclarator()
7874 NewFD->getType()->castAs<FunctionProtoType>(); in ActOnFunctionDeclarator()
7877 NewFD->setType(Context.getFunctionType(Result, FPT->getParamTypes(), in ActOnFunctionDeclarator()
7884 if (isInline && !NewFD->isInvalidDecl()) { in ActOnFunctionDeclarator()
7897 if (isExplicit && !NewFD->isInvalidDecl()) { in ActOnFunctionDeclarator()
7903 } else if (!isa<CXXConstructorDecl>(NewFD) && in ActOnFunctionDeclarator()
7904 !isa<CXXConversionDecl>(NewFD)) { in ActOnFunctionDeclarator()
7916 NewFD->setImplicitlyInline(); in ActOnFunctionDeclarator()
7921 if (isa<CXXDestructorDecl>(NewFD)) in ActOnFunctionDeclarator()
7927 if (FunctionTemplateDecl *FTD = NewFD->getDescribedFunctionTemplate()) in ActOnFunctionDeclarator()
7935 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7946 Diag(NewFD->getLocation(), diag::err_function_concept_exception_spec) in ActOnFunctionDeclarator()
7948 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7950 Context.adjustExceptionSpec(NewFD, EST_BasicNoexcept); in ActOnFunctionDeclarator()
7958 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
7966 Diag(NewFD->getLocation(), diag::err_function_concept_with_params); in ActOnFunctionDeclarator()
7971 NewFD->setImplicitlyInline(); in ActOnFunctionDeclarator()
7980 NewFD->setInvalidDecl(true); in ActOnFunctionDeclarator()
7987 NewFD->setInvalidDecl(true); in ActOnFunctionDeclarator()
7994 NewFD->setInvalidDecl(true); in ActOnFunctionDeclarator()
8003 NewFD->setInvalidDecl(true); in ActOnFunctionDeclarator()
8004 return NewFD; in ActOnFunctionDeclarator()
8017 NewFD->setModulePrivate(); in ActOnFunctionDeclarator()
8028 NewFD->setObjectOfFriendDecl(); in ActOnFunctionDeclarator()
8029 NewFD->setAccess(AS_public); in ActOnFunctionDeclarator()
8041 NewFD->setDefaulted(); in ActOnFunctionDeclarator()
8045 NewFD->setDeletedAsWritten(); in ActOnFunctionDeclarator()
8049 if (isa<CXXMethodDecl>(NewFD) && DC == CurContext && in ActOnFunctionDeclarator()
8054 NewFD->setImplicitlyInline(); in ActOnFunctionDeclarator()
8057 if (SC == SC_Static && isa<CXXMethodDecl>(NewFD) && in ActOnFunctionDeclarator()
8078 NewFD->setType(Context.getFunctionType( in ActOnFunctionDeclarator()
8084 FilterLookupForScope(Previous, OriginalDC, S, shouldConsiderLinkage(NewFD), in ActOnFunctionDeclarator()
8093 NewFD->addAttr(::new (Context) AsmLabelAttr(SE->getStrTokenLoc(0), Context, in ActOnFunctionDeclarator()
8097 ExtnameUndeclaredIdentifiers.find(NewFD->getIdentifier()); in ActOnFunctionDeclarator()
8099 if (isDeclExternC(NewFD)) { in ActOnFunctionDeclarator()
8100 NewFD->addAttr(I->second); in ActOnFunctionDeclarator()
8103 Diag(NewFD->getLocation(), diag::warn_redefine_extname_not_applied) in ActOnFunctionDeclarator()
8104 << /*Variable*/0 << NewFD; in ActOnFunctionDeclarator()
8122 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
8123 Param->setDeclContext(NewFD); in ActOnFunctionDeclarator()
8127 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
8143 BuildParmVarDeclForTypedef(NewFD, D.getIdentifierLoc(), AI); in ActOnFunctionDeclarator()
8148 assert(R->isFunctionNoProtoType() && NewFD->getNumParams() == 0 && in ActOnFunctionDeclarator()
8153 NewFD->setParams(Params); in ActOnFunctionDeclarator()
8161 NewFD->setDeclsInPrototypeScope(DeclsInPrototypeScope); in ActOnFunctionDeclarator()
8165 NewFD->addAttr( in ActOnFunctionDeclarator()
8171 if (!NewFD->isInvalidDecl() && in ActOnFunctionDeclarator()
8172 NewFD->getReturnType()->isVariablyModifiedType()) { in ActOnFunctionDeclarator()
8173 Diag(NewFD->getLocation(), diag::err_vm_func_decl); in ActOnFunctionDeclarator()
8174 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
8179 !NewFD->hasAttr<SectionAttr>()) { in ActOnFunctionDeclarator()
8180 NewFD->addAttr( in ActOnFunctionDeclarator()
8187 NewFD)) in ActOnFunctionDeclarator()
8188 NewFD->dropAttr<SectionAttr>(); in ActOnFunctionDeclarator()
8192 ProcessDeclAttributes(S, NewFD, D); in ActOnFunctionDeclarator()
8195 maybeAddCUDAHostDeviceAttrs(S, NewFD, Previous); in ActOnFunctionDeclarator()
8200 unsigned AddressSpace = NewFD->getReturnType().getAddressSpace(); in ActOnFunctionDeclarator()
8204 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8206 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
8213 if (!NewFD->isInvalidDecl() && NewFD->isMain()) in ActOnFunctionDeclarator()
8214 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
8216 if (!NewFD->isInvalidDecl() && NewFD->isMSVCRTEntryPoint()) in ActOnFunctionDeclarator()
8217 CheckMSVCRTEntryPoint(NewFD); in ActOnFunctionDeclarator()
8219 if (!NewFD->isInvalidDecl()) in ActOnFunctionDeclarator()
8220 D.setRedeclaration(CheckFunctionDeclaration(S, NewFD, Previous, in ActOnFunctionDeclarator()
8225 assert((NewFD->isInvalidDecl() || !D.isRedeclaration() || in ActOnFunctionDeclarator()
8232 const FunctionType *FT = NewFD->getType()->castAs<FunctionType>(); in ActOnFunctionDeclarator()
8240 Diag(NewFD->getLocation(), DiagID) in ActOnFunctionDeclarator()
8253 NewFD->isReplaceableGlobalAllocationFunction() && in ActOnFunctionDeclarator()
8254 !NewFD->hasAttr<UsedAttr>()) in ActOnFunctionDeclarator()
8257 << NewFD->getDeclName(); in ActOnFunctionDeclarator()
8272 if (NewFD->isInvalidDecl()) { in ActOnFunctionDeclarator()
8305 (NewFD->getType()->isDependentType() || DC->isDependentContext() || in ActOnFunctionDeclarator()
8311 if (CheckDependentFunctionTemplateSpecialization(NewFD, TemplateArgs, in ActOnFunctionDeclarator()
8313 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
8318 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ? in ActOnFunctionDeclarator()
8321 << NewFD->getDeclName(); in ActOnFunctionDeclarator()
8322 } else if (CheckFunctionTemplateSpecialization(NewFD, in ActOnFunctionDeclarator()
8326 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
8332 NewFD->getTemplateSpecializationInfo(); in ActOnFunctionDeclarator()
8335 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8342 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8347 } else if (isExplicitSpecialization && isa<CXXMethodDecl>(NewFD)) { in ActOnFunctionDeclarator()
8348 if (CheckMemberSpecialization(NewFD, Previous)) in ActOnFunctionDeclarator()
8349 NewFD->setInvalidDecl(); in ActOnFunctionDeclarator()
8354 if (!NewFD->isInvalidDecl() && NewFD->isMain()) in ActOnFunctionDeclarator()
8355 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
8357 if (!NewFD->isInvalidDecl() && NewFD->isMSVCRTEntryPoint()) in ActOnFunctionDeclarator()
8358 CheckMSVCRTEntryPoint(NewFD); in ActOnFunctionDeclarator()
8360 if (!NewFD->isInvalidDecl()) in ActOnFunctionDeclarator()
8361 D.setRedeclaration(CheckFunctionDeclaration(S, NewFD, Previous, in ActOnFunctionDeclarator()
8368 assert((NewFD->isInvalidDecl() || !D.isRedeclaration() || in ActOnFunctionDeclarator()
8374 : NewFD); in ActOnFunctionDeclarator()
8378 if (!NewFD->isInvalidDecl()) in ActOnFunctionDeclarator()
8379 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
8381 NewFD->setAccess(Access); in ActOnFunctionDeclarator()
8385 if (NewFD->isOverloadedOperator() && !DC->isRecord() && in ActOnFunctionDeclarator()
8408 if (NewFD->isInvalidDecl()) { in ActOnFunctionDeclarator()
8414 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
8415 NewFD->setAccess(AS_public); in ActOnFunctionDeclarator()
8450 *this, Previous, NewFD, ExtraArgs, false, nullptr)) { in ActOnFunctionDeclarator()
8460 *this, Previous, NewFD, ExtraArgs, true, S)) { in ActOnFunctionDeclarator()
8466 isa<CXXMethodDecl>(NewFD) && NewFD->isOutOfLine() && in ActOnFunctionDeclarator()
8476 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration) in ActOnFunctionDeclarator()
8481 ProcessPragmaWeak(S, NewFD); in ActOnFunctionDeclarator()
8482 checkAttributesAfterMerging(*this, *NewFD); in ActOnFunctionDeclarator()
8484 AddKnownFunctionAttributes(NewFD); in ActOnFunctionDeclarator()
8486 if (NewFD->hasAttr<OverloadableAttr>() && in ActOnFunctionDeclarator()
8487 !NewFD->getType()->getAs<FunctionProtoType>()) { in ActOnFunctionDeclarator()
8488 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
8490 << NewFD; in ActOnFunctionDeclarator()
8493 const FunctionType *FT = NewFD->getType()->getAs<FunctionType>(); in ActOnFunctionDeclarator()
8500 NewFD->setType(R); in ActOnFunctionDeclarator()
8505 if (!DC->isRecord() && NewFD->isExternallyVisible()) in ActOnFunctionDeclarator()
8506 AddPushedVisibilityAttribute(NewFD); in ActOnFunctionDeclarator()
8510 AddCFAuditedAttribute(NewFD); in ActOnFunctionDeclarator()
8515 AddRangeBasedOptnone(NewFD); in ActOnFunctionDeclarator()
8519 if (NewFD->isFirstDecl() && !NewFD->isInvalidDecl() && in ActOnFunctionDeclarator()
8520 isIncompleteDeclExternC(*this, NewFD)) in ActOnFunctionDeclarator()
8521 RegisterLocallyScopedExternCDecl(NewFD, S); in ActOnFunctionDeclarator()
8524 NewFD->setRangeEnd(D.getSourceRange().getEnd()); in ActOnFunctionDeclarator()
8528 *this, dyn_cast<NamedDecl>(Previous.getRepresentativeDecl()), NewFD, in ActOnFunctionDeclarator()
8534 IdentifierInfo *II = NewFD->getIdentifier(); in ActOnFunctionDeclarator()
8535 if (II && II->isStr("cudaConfigureCall") && !NewFD->isInvalidDecl() && in ActOnFunctionDeclarator()
8536 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
8538 Diag(NewFD->getLocation(), diag::err_config_scalar_return); in ActOnFunctionDeclarator()
8540 Context.setcudaConfigureCallDecl(NewFD); in ActOnFunctionDeclarator()
8546 if (!getLangOpts().CUDAAllowVariadicFunctions && NewFD->isVariadic() && in ActOnFunctionDeclarator()
8547 (NewFD->hasAttr<CUDADeviceAttr>() || in ActOnFunctionDeclarator()
8548 NewFD->hasAttr<CUDAGlobalAttr>()) && in ActOnFunctionDeclarator()
8549 !(II && II->isStr("printf") && NewFD->isExternC() && in ActOnFunctionDeclarator()
8551 Diag(NewFD->getLocation(), diag::err_variadic_device_fn); in ActOnFunctionDeclarator()
8557 if (NewFD->isInvalidDecl()) in ActOnFunctionDeclarator()
8563 if (NewFD->hasAttr<OpenCLKernelAttr>()) { in ActOnFunctionDeclarator()
8572 if (!NewFD->getReturnType()->isVoidType()) { in ActOnFunctionDeclarator()
8573 SourceRange RTRange = NewFD->getReturnTypeSourceRange(); in ActOnFunctionDeclarator()
8581 for (auto Param : NewFD->parameters()) in ActOnFunctionDeclarator()
8584 for (const ParmVarDecl *Param : NewFD->parameters()) { in ActOnFunctionDeclarator()
8600 MarkUnusedFileScopedDecl(NewFD); in ActOnFunctionDeclarator()
8609 cast<CXXMethodDecl>(NewFD), in ActOnFunctionDeclarator()
8615 return NewFD; in ActOnFunctionDeclarator()
8634 bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, in CheckFunctionDeclaration() argument
8637 assert(!NewFD->getReturnType()->isVariablyModifiedType() && in CheckFunctionDeclaration()
8658 if (shouldLinkPossiblyHiddenDecl(Candidate, NewFD)) { in CheckFunctionDeclaration()
8663 switch (CheckOverload(S, NewFD, Previous, OldDecl, in CheckFunctionDeclaration()
8678 if (!getLangOpts().CPlusPlus && !NewFD->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8681 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
8682 << Redeclaration << NewFD; in CheckFunctionDeclaration()
8691 NewFD->addAttr(OverloadableAttr::CreateImplicit(Context)); in CheckFunctionDeclaration()
8698 checkForConflictWithNonVisibleExternC(*this, NewFD, Previous)) { in CheckFunctionDeclaration()
8708 if (!getLangOpts().CPlusPlus && !NewFD->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8709 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
8710 << Redeclaration << NewFD; in CheckFunctionDeclaration()
8713 NewFD->addAttr(OverloadableAttr::CreateImplicit(Context)); in CheckFunctionDeclaration()
8715 if (IsOverload(NewFD, cast<FunctionDecl>(OldDecl), false)) { in CheckFunctionDeclaration()
8732 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckFunctionDeclaration()
8764 if (MergeFunctionDecl(NewFD, OldDecl, S, MergeTypeWithPrevious)) { in CheckFunctionDeclaration()
8765 NewFD->setInvalidDecl(); in CheckFunctionDeclaration()
8774 NewFD->setPreviousDeclaration(OldTemplateDecl->getTemplatedDecl()); in CheckFunctionDeclaration()
8776 = NewFD->getDescribedFunctionTemplate(); in CheckFunctionDeclaration()
8802 NewFD->setPreviousDeclaration(cast<FunctionDecl>(OldDecl)); in CheckFunctionDeclaration()
8804 if (isa<CXXMethodDecl>(NewFD)) in CheckFunctionDeclaration()
8805 NewFD->setAccess(OldDecl->getAccess()); in CheckFunctionDeclaration()
8813 if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(NewFD)) { in CheckFunctionDeclaration()
8816 dyn_cast<CXXDestructorDecl>(NewFD)) { in CheckFunctionDeclaration()
8826 if (NewFD->getDeclName() != Name) { in CheckFunctionDeclaration()
8827 Diag(NewFD->getLocation(), diag::err_destructor_name); in CheckFunctionDeclaration()
8828 NewFD->setInvalidDecl(); in CheckFunctionDeclaration()
8833 = dyn_cast<CXXConversionDecl>(NewFD)) { in CheckFunctionDeclaration()
8838 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD)) { in CheckFunctionDeclaration()
8844 if (NewFD->getStorageClass() == SC_Static) { in CheckFunctionDeclaration()
8855 if (NewFD->isOverloadedOperator() && in CheckFunctionDeclaration()
8856 CheckOverloadedOperatorDeclaration(NewFD)) { in CheckFunctionDeclaration()
8857 NewFD->setInvalidDecl(); in CheckFunctionDeclaration()
8862 if (NewFD->getLiteralIdentifier() && in CheckFunctionDeclaration()
8863 CheckLiteralOperatorDeclaration(NewFD)) { in CheckFunctionDeclaration()
8864 NewFD->setInvalidDecl(); in CheckFunctionDeclaration()
8872 CheckCXXDefaultArguments(NewFD); in CheckFunctionDeclaration()
8876 if (unsigned BuiltinID = NewFD->getBuiltinID()) { in CheckFunctionDeclaration()
8878 LookupPredefedObjCSuperType(*this, S, NewFD->getIdentifier()); in CheckFunctionDeclaration()
8880 if (!T.isNull() && !Context.hasSameType(T, NewFD->getType())) { in CheckFunctionDeclaration()
8891 if (Previous.empty() && NewFD->isExternC()) { in CheckFunctionDeclaration()
8892 QualType R = NewFD->getReturnType(); in CheckFunctionDeclaration()
8894 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete) in CheckFunctionDeclaration()
8895 << NewFD << R; in CheckFunctionDeclaration()
8898 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R; in CheckFunctionDeclaration()
13421 FieldDecl *NewFD in HandleField() local
13425 if (NewFD->isInvalidDecl()) in HandleField()
13429 NewFD->setModulePrivate(); in HandleField()
13431 if (NewFD->isInvalidDecl() && PrevDecl) { in HandleField()
13435 PushOnScopeChains(NewFD, S); in HandleField()
13437 Record->addDecl(NewFD); in HandleField()
13439 return NewFD; in HandleField()
13566 FieldDecl *NewFD = FieldDecl::Create(Context, Record, TSSL, Loc, II, T, TInfo, in CheckFieldDecl() local
13569 NewFD->setInvalidDecl(); in CheckFieldDecl()
13574 NewFD->setInvalidDecl(); in CheckFieldDecl()
13587 if (CheckNontrivialField(NewFD)) in CheckFieldDecl()
13588 NewFD->setInvalidDecl(); in CheckFieldDecl()
13596 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ? in CheckFieldDecl()
13599 << NewFD->getDeclName() << EltTy; in CheckFieldDecl()
13601 NewFD->setInvalidDecl(); in CheckFieldDecl()
13610 ProcessDeclAttributes(getCurScope(), NewFD, *D); in CheckFieldDecl()
13612 if (NewFD->hasAttrs()) in CheckFieldDecl()
13613 CheckAlignasUnderalignment(NewFD); in CheckFieldDecl()
13618 if (getLangOpts().ObjCAutoRefCount && inferObjCARCLifetime(NewFD)) in CheckFieldDecl()
13619 NewFD->setInvalidDecl(); in CheckFieldDecl()
13624 NewFD->setAccess(AS); in CheckFieldDecl()
13625 return NewFD; in CheckFieldDecl()