Searched refs:NewTD (Results 1 – 2 of 2) sorted by relevance
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 3956 TypedefDecl *NewTD = ParseTypedefDecl(S, D, TInfo->getType(), TInfo); in ActOnTypedefDeclarator() local 3957 if (!NewTD) return 0; in ActOnTypedefDeclarator() 3960 ProcessDeclAttributes(S, NewTD, D); in ActOnTypedefDeclarator() 3962 CheckTypedefForVariablyModifiedType(S, NewTD); in ActOnTypedefDeclarator() 3965 NamedDecl *ND = ActOnTypedefNameDecl(S, DC, NewTD, Previous, Redeclaration); in ActOnTypedefDeclarator() 3971 Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) { in CheckTypedefForVariablyModifiedType() argument 3976 QualType T = NewTD->getUnderlyingType(); in CheckTypedefForVariablyModifiedType() 3987 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType() 3988 NewTD->setTypeSourceInfo(Context.getTrivialTypeSourceInfo(FixedTy)); in CheckTypedefForVariablyModifiedType() 3991 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType() [all …]
|
D | SemaDeclCXX.cpp | 6562 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc, in ActOnAliasDeclaration() local 6566 NewTD->setAccess(AS); in ActOnAliasDeclaration() 6569 NewTD->setInvalidDecl(); in ActOnAliasDeclaration() 6571 CheckTypedefForVariablyModifiedType(S, NewTD); in ActOnAliasDeclaration() 6572 Invalid |= NewTD->isInvalidDecl(); in ActOnAliasDeclaration() 6618 NewTD->getUnderlyingType())) { in ActOnAliasDeclaration() 6621 Diag(NewTD->getLocation(), diag::err_redefinition_different_typedef) in ActOnAliasDeclaration() 6622 << 2 << NewTD->getUnderlyingType() << OldTD->getUnderlyingType(); in ActOnAliasDeclaration() 6639 NewTD); in ActOnAliasDeclaration() 6650 ActOnTypedefNameDecl(S, CurContext, NewTD, Previous, Redeclaration); in ActOnAliasDeclaration() [all …]
|