Lines Matching refs:NewTD
3645 TypedefNameDecl *NewTD) { in setTagNameForLinkagePurposes() argument
3657 if (!Context.hasSameType(NewTD->getUnderlyingType(), in setTagNameForLinkagePurposes()
3660 Context.addTypedefNameForUnnamedTagDecl(TagFromDeclSpec, NewTD); in setTagNameForLinkagePurposes()
3671 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage); in setTagNameForLinkagePurposes()
3678 textToInsert += NewTD->getIdentifier()->getName(); in setTagNameForLinkagePurposes()
3685 TagFromDeclSpec->setTypedefNameForAnonDecl(NewTD); in setTagNameForLinkagePurposes()
5205 TypedefDecl *NewTD = ParseTypedefDecl(S, D, TInfo->getType(), TInfo); in ActOnTypedefDeclarator() local
5206 if (!NewTD) return nullptr; in ActOnTypedefDeclarator()
5209 ProcessDeclAttributes(S, NewTD, D); in ActOnTypedefDeclarator()
5211 CheckTypedefForVariablyModifiedType(S, NewTD); in ActOnTypedefDeclarator()
5214 NamedDecl *ND = ActOnTypedefNameDecl(S, DC, NewTD, Previous, Redeclaration); in ActOnTypedefDeclarator()
5220 Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) { in CheckTypedefForVariablyModifiedType() argument
5225 TypeSourceInfo *TInfo = NewTD->getTypeSourceInfo(); in CheckTypedefForVariablyModifiedType()
5238 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType()
5239 NewTD->setTypeSourceInfo(FixedTInfo); in CheckTypedefForVariablyModifiedType()
5242 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType()
5244 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5246 Diag(NewTD->getLocation(), diag::err_array_too_large) in CheckTypedefForVariablyModifiedType()
5249 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5250 NewTD->setInvalidDecl(); in CheckTypedefForVariablyModifiedType()
5261 Sema::ActOnTypedefNameDecl(Scope *S, DeclContext *DC, TypedefNameDecl *NewTD, in ActOnTypedefNameDecl() argument
5267 filterNonConflictingPreviousTypedefDecls(*this, NewTD, Previous); in ActOnTypedefNameDecl()
5270 MergeTypedefNameDecl(S, NewTD, Previous); in ActOnTypedefNameDecl()
5274 if (IdentifierInfo *II = NewTD->getIdentifier()) in ActOnTypedefNameDecl()
5275 if (!NewTD->isInvalidDecl() && in ActOnTypedefNameDecl()
5276 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
5278 Context.setFILEDecl(NewTD); in ActOnTypedefNameDecl()
5280 Context.setjmp_bufDecl(NewTD); in ActOnTypedefNameDecl()
5282 Context.setsigjmp_bufDecl(NewTD); in ActOnTypedefNameDecl()
5284 Context.setucontext_tDecl(NewTD); in ActOnTypedefNameDecl()
5287 return NewTD; in ActOnTypedefNameDecl()
5466 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) in checkDLLAttributeRedeclaration() local
5467 NewDecl = NewTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
11524 TypedefDecl *NewTD = TypedefDecl::Create(Context, CurContext, in ParseTypedefDecl() local
11532 NewTD->setInvalidDecl(); in ParseTypedefDecl()
11533 return NewTD; in ParseTypedefDecl()
11538 Diag(NewTD->getLocation(), diag::err_module_private_local) in ParseTypedefDecl()
11539 << 2 << NewTD->getDeclName() in ParseTypedefDecl()
11543 NewTD->setModulePrivate(); in ParseTypedefDecl()
11559 setTagNameForLinkagePurposes(tagFromDeclSpec, NewTD); in ParseTypedefDecl()
11567 return NewTD; in ParseTypedefDecl()