Lines Matching refs:NewTD
4776 TypedefDecl *NewTD = ParseTypedefDecl(S, D, TInfo->getType(), TInfo);
4777 if (!NewTD) return nullptr;
4780 ProcessDeclAttributes(S, NewTD, D);
4782 CheckTypedefForVariablyModifiedType(S, NewTD);
4785 NamedDecl *ND = ActOnTypedefNameDecl(S, DC, NewTD, Previous, Redeclaration);
4791 Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) {
4796 TypeSourceInfo *TInfo = NewTD->getTypeSourceInfo();
4809 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size);
4810 NewTD->setTypeSourceInfo(FixedTInfo);
4813 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size);
4815 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope);
4817 Diag(NewTD->getLocation(), diag::err_array_too_large)
4820 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope);
4821 NewTD->setInvalidDecl();
4832 Sema::ActOnTypedefNameDecl(Scope *S, DeclContext *DC, TypedefNameDecl *NewTD,
4838 filterNonConflictingPreviousDecls(Context, NewTD, Previous);
4841 MergeTypedefNameDecl(NewTD, Previous);
4845 if (IdentifierInfo *II = NewTD->getIdentifier())
4846 if (!NewTD->isInvalidDecl() &&
4847 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
4849 Context.setFILEDecl(NewTD);
4851 Context.setjmp_bufDecl(NewTD);
4853 Context.setsigjmp_bufDecl(NewTD);
4855 Context.setucontext_tDecl(NewTD);
4858 return NewTD;
5019 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl))
5020 NewDecl = NewTD->getTemplatedDecl();
10471 TypedefDecl *NewTD = TypedefDecl::Create(Context, CurContext,
10479 NewTD->setInvalidDecl();
10480 return NewTD;
10485 Diag(NewTD->getLocation(), diag::err_module_private_local)
10486 << 2 << NewTD->getDeclName()
10490 NewTD->setModulePrivate();
10540 tagFromDeclSpec->setTypedefNameForAnonDecl(NewTD);
10548 return NewTD;