Lines Matching refs:NewTD
3760 TypedefNameDecl *NewTD) { in setTagNameForLinkagePurposes() argument
3772 if (!Context.hasSameType(NewTD->getUnderlyingType(), in setTagNameForLinkagePurposes()
3775 Context.addTypedefNameForUnnamedTagDecl(TagFromDeclSpec, NewTD); in setTagNameForLinkagePurposes()
3786 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage); in setTagNameForLinkagePurposes()
3793 textToInsert += NewTD->getIdentifier()->getName(); in setTagNameForLinkagePurposes()
3800 TagFromDeclSpec->setTypedefNameForAnonDecl(NewTD); in setTagNameForLinkagePurposes()
5339 TypedefDecl *NewTD = ParseTypedefDecl(S, D, TInfo->getType(), TInfo); in ActOnTypedefDeclarator() local
5340 if (!NewTD) return nullptr; in ActOnTypedefDeclarator()
5343 ProcessDeclAttributes(S, NewTD, D); in ActOnTypedefDeclarator()
5345 CheckTypedefForVariablyModifiedType(S, NewTD); in ActOnTypedefDeclarator()
5348 NamedDecl *ND = ActOnTypedefNameDecl(S, DC, NewTD, Previous, Redeclaration); in ActOnTypedefDeclarator()
5354 Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) { in CheckTypedefForVariablyModifiedType() argument
5359 TypeSourceInfo *TInfo = NewTD->getTypeSourceInfo(); in CheckTypedefForVariablyModifiedType()
5372 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType()
5373 NewTD->setTypeSourceInfo(FixedTInfo); in CheckTypedefForVariablyModifiedType()
5376 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType()
5378 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5380 Diag(NewTD->getLocation(), diag::err_array_too_large) in CheckTypedefForVariablyModifiedType()
5383 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5384 NewTD->setInvalidDecl(); in CheckTypedefForVariablyModifiedType()
5394 Sema::ActOnTypedefNameDecl(Scope *S, DeclContext *DC, TypedefNameDecl *NewTD, in ActOnTypedefNameDecl() argument
5400 filterNonConflictingPreviousTypedefDecls(*this, NewTD, Previous); in ActOnTypedefNameDecl()
5403 MergeTypedefNameDecl(S, NewTD, Previous); in ActOnTypedefNameDecl()
5407 if (IdentifierInfo *II = NewTD->getIdentifier()) in ActOnTypedefNameDecl()
5408 if (!NewTD->isInvalidDecl() && in ActOnTypedefNameDecl()
5409 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
5411 Context.setFILEDecl(NewTD); in ActOnTypedefNameDecl()
5413 Context.setjmp_bufDecl(NewTD); in ActOnTypedefNameDecl()
5415 Context.setsigjmp_bufDecl(NewTD); in ActOnTypedefNameDecl()
5417 Context.setucontext_tDecl(NewTD); in ActOnTypedefNameDecl()
5420 return NewTD; in ActOnTypedefNameDecl()
5603 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) in checkDLLAttributeRedeclaration() local
5604 NewDecl = NewTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
11943 TypedefDecl *NewTD = TypedefDecl::Create(Context, CurContext, in ParseTypedefDecl() local
11951 NewTD->setInvalidDecl(); in ParseTypedefDecl()
11952 return NewTD; in ParseTypedefDecl()
11957 Diag(NewTD->getLocation(), diag::err_module_private_local) in ParseTypedefDecl()
11958 << 2 << NewTD->getDeclName() in ParseTypedefDecl()
11962 NewTD->setModulePrivate(); in ParseTypedefDecl()
11978 setTagNameForLinkagePurposes(tagFromDeclSpec, NewTD); in ParseTypedefDecl()
11986 return NewTD; in ParseTypedefDecl()