Searched refs:NewTD (Results 1 – 2 of 2) sorted by relevance
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 4776 TypedefDecl *NewTD = ParseTypedefDecl(S, D, TInfo->getType(), TInfo); in ActOnTypedefDeclarator() local 4777 if (!NewTD) return nullptr; in ActOnTypedefDeclarator() 4780 ProcessDeclAttributes(S, NewTD, D); in ActOnTypedefDeclarator() 4782 CheckTypedefForVariablyModifiedType(S, NewTD); in ActOnTypedefDeclarator() 4785 NamedDecl *ND = ActOnTypedefNameDecl(S, DC, NewTD, Previous, Redeclaration); in ActOnTypedefDeclarator() 4791 Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) { in CheckTypedefForVariablyModifiedType() argument 4796 TypeSourceInfo *TInfo = NewTD->getTypeSourceInfo(); in CheckTypedefForVariablyModifiedType() 4809 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType() 4810 NewTD->setTypeSourceInfo(FixedTInfo); in CheckTypedefForVariablyModifiedType() 4813 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType() [all …]
|
D | SemaDeclCXX.cpp | 8084 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc, in ActOnAliasDeclaration() local 8088 NewTD->setAccess(AS); in ActOnAliasDeclaration() 8091 NewTD->setInvalidDecl(); in ActOnAliasDeclaration() 8093 ProcessDeclAttributeList(S, NewTD, AttrList); in ActOnAliasDeclaration() 8095 CheckTypedefForVariablyModifiedType(S, NewTD); in ActOnAliasDeclaration() 8096 Invalid |= NewTD->isInvalidDecl(); in ActOnAliasDeclaration() 8142 NewTD->getUnderlyingType())) { in ActOnAliasDeclaration() 8145 Diag(NewTD->getLocation(), diag::err_redefinition_different_typedef) in ActOnAliasDeclaration() 8146 << 2 << NewTD->getUnderlyingType() << OldTD->getUnderlyingType(); in ActOnAliasDeclaration() 8163 NewTD); in ActOnAliasDeclaration() [all …]
|