Home | History | Annotate | Download | only in Sema

Lines Matching refs:New

420 /// that the template parameter 'PrevDecl' is being shadowed by a new
908 // context we computed is the semantic context for our new
1167 /// equivalent (per TemplateParameterListsAreEqual) to the "new"
1170 /// \param NewParams Template parameter list for a new template
1178 /// the new template parameter list.
1245 // new declaration.
1289 // new declaration.
1291 // FIXME: We need to create a new kind of "default argument"
1336 // new declaration.
1338 // FIXME: We need to create a new kind of "default argument" expression
3809 // The argument is value-dependent. Create a new
4164 /// \brief Construct a new expression that refers to the given
4188 return Owned(new (Context) CharacterLiteral(
4194 return Owned(new (Context) CXXBoolLiteralExpr(
4199 return Owned(new (Context) CXXNullPtrLiteralExpr(Context.NullPtrTy, Loc));
4223 static bool MatchTemplateParameterKind(Sema &S, NamedDecl *New, NamedDecl *Old,
4228 if (Old->getKind() != New->getKind()) {
4235 S.Diag(New->getLocation(), NextDiag)
4248 if (Old->isTemplateParameterPack() != New->isTemplateParameterPack() &&
4259 unsigned ParamKind = isa<TemplateTypeParmDecl>(New)? 0
4260 : isa<NonTypeTemplateParmDecl>(New)? 1
4262 S.Diag(New->getLocation(), NextDiag)
4263 << ParamKind << New->isParameterPack();
4274 NonTypeTemplateParmDecl *NewNTTP = cast<NonTypeTemplateParmDecl>(New);
4312 TemplateTemplateParmDecl *NewTTP = cast<TemplateTemplateParmDecl>(New);
4329 TemplateParameterList *New,
4338 S.Diag(New->getTemplateLoc(), NextDiag)
4339 << (New->size() > Old->size())
4341 << SourceRange(New->getTemplateLoc(), New->getRAngleLoc());
4350 /// \param New The new template parameter list, typically written in the
4351 /// source code as part of a new template declaration.
4364 /// argument (New) against the template parameter list of its
4371 Sema::TemplateParameterListsAreEqual(TemplateParameterList *New,
4376 if (Old->size() != New->size() && Kind != TPL_TemplateTemplateArgumentMatch) {
4378 DiagnoseTemplateParameterListArityMismatch(*this, New, Old, Kind,
4390 TemplateParameterList::iterator NewParm = New->begin();
4391 TemplateParameterList::iterator NewParmEnd = New->end();
4399 DiagnoseTemplateParameterListArityMismatch(*this, New, Old, Kind,
4430 DiagnoseTemplateParameterListArityMismatch(*this, New, Old, Kind,
4954 // the list of outer template parameters to reflect our new declaration.
4991 // Create a new class template partial specialization declaration node.
5057 // Create a new class template specialization declaration node for
5222 /// new specialization/instantiation will have any effect.
5224 /// \param NewLoc the location of the new explicit specialization or
5227 /// \param NewTSK the kind of the new explicit specialization or instantiation.
5236 /// \param HasNoEffect will be set to true to indicate that the new
5240 /// the new declaration into the AST, false otherwise.
5554 const TemplateArgumentList* TemplArgs = new (Context)
5906 // for the template name to reflect our new declaration.
5915 // Create a new class template specialization declaration node for
5928 // Insert the new specialization.