Lines Matching refs:TUK

848 Sema::CheckClassTemplate(Scope *S, unsigned TagSpec, TagUseKind TUK,  in CheckClassTemplate()  argument
860 assert(TUK != TUK_Reference && "Can only declare or define class templates"); in CheckClassTemplate()
881 (SS.isEmpty() && TUK == TUK_Friend) in CheckClassTemplate()
890 Diag(NameLoc, TUK == TUK_Friend in CheckClassTemplate()
894 return TUK != TUK_Friend; in CheckClassTemplate()
907 } else if (TUK != TUK_Friend && TUK != TUK_Reference) in CheckClassTemplate()
918 if (TUK != TUK_Friend && in CheckClassTemplate()
960 if (TUK == TUK_Friend) { in CheckClassTemplate()
1021 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1035 TUK == TUK_Definition, KWLoc, Name)) { in CheckClassTemplate()
1044 if (TUK == TUK_Definition) { in CheckClassTemplate()
1081 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1089 : TUK == TUK_Friend ? TPC_FriendClassTemplate in CheckClassTemplate()
1097 Diag(NameLoc, TUK == TUK_Friend ? diag::err_friend_decl_does_not_match in CheckClassTemplate()
1117 if (TUK == TUK_Definition) { in CheckClassTemplate()
1144 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate()
1151 if (TUK == TUK_Definition) in CheckClassTemplate()
1162 if (TUK != TUK_Friend) { in CheckClassTemplate()
2344 TypeResult Sema::ActOnTagTemplateIdType(TagUseKind TUK, in ActOnTagTemplateIdType() argument
2407 if (!isAcceptableTagRedeclaration(D, TagKind, TUK == TUK_Definition, in ActOnTagTemplateIdType()
6179 TagUseKind TUK, in ActOnClassTemplateSpecialization() argument
6187 assert(TUK != TUK_Reference && "References are not specializations"); in ActOnClassTemplateSpecialization()
6222 TemplateParameterLists, TUK == TUK_Friend, isExplicitSpecialization, in ActOnClassTemplateSpecialization()
6230 if (TUK == TUK_Friend) { in ActOnClassTemplateSpecialization()
6266 if (TUK == TUK_Friend) in ActOnClassTemplateSpecialization()
6275 assert(TUK == TUK_Friend && "should have a 'template<>' for this decl"); in ActOnClassTemplateSpecialization()
6283 Kind, TUK == TUK_Definition, KWLoc, in ActOnClassTemplateSpecialization()
6342 if (TUK != TUK_Friend && in ActOnClassTemplateSpecialization()
6364 << /*class template*/0 << (TUK == TUK_Definition) in ActOnClassTemplateSpecialization()
6366 return CheckClassTemplate(S, TagSpec, TUK, KWLoc, SS, in ActOnClassTemplateSpecialization()
6495 if (TUK != TUK_Friend) in ActOnClassTemplateSpecialization()
6499 if (TUK == TUK_Definition) { in ActOnClassTemplateSpecialization()
6506 TUK = TUK_Declaration; in ActOnClassTemplateSpecialization()
6522 if (TUK == TUK_Definition) { in ActOnClassTemplateSpecialization()
6542 if (TUK != TUK_Friend) { in ActOnClassTemplateSpecialization()
6558 if (TUK == TUK_Definition) in ActOnClassTemplateSpecialization()
6561 if (TUK == TUK_Friend) { in ActOnClassTemplateSpecialization()
8110 Sema::ActOnDependentTag(Scope *S, unsigned TagSpec, TagUseKind TUK, in ActOnDependentTag() argument
8122 if (TUK == TUK_Declaration || TUK == TUK_Definition) { in ActOnDependentTag()
8124 << (TUK == TUK_Definition) << Kind << SS.getRange(); in ActOnDependentTag()