Lines Matching defs:SemaRef

899 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef,
905 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI);
907 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation());
924 SemaRef.Context, TArg,
925 Arg.getScopeSpec().getWithLocInContext(SemaRef.Context),
940 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S,
944 SemaRef.LookupSingleName(S, Name, Loc, Sema::LookupOrdinaryName,
947 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl);
1681 ConstraintRefersToContainingTemplateChecker(Sema &SemaRef,
1684 : inherited(SemaRef), Friend(Friend), TemplateDepth(TemplateDepth) {}
3062 checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD,
3066 ASTContext &Context = SemaRef.getASTContext();
3077 SemaRef.Diag(TemplateArgs[1].getLocation(),
3092 SemaRef.Context.getTrivialTypeSourceInfo(
3100 SyntheticTemplateArgs.addArgument(SemaRef.getTrivialTemplateArgumentLoc(
3106 SemaRef.Diag(TemplateArgs[2].getLocation(),
3113 return SemaRef.CheckTemplateIdType(Converted[0].getAsTemplate(),
3134 SemaRef.Diag(TemplateArgs[0].getLocation(),
4734 /// \param SemaRef the semantic analysis object for which we are performing
4756 Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc,
4766 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, Param, Template,
4781 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext(),
4784 if (SemaRef.SubstTemplateArgument(Output, TemplateArgLists, Output,
4796 /// \param SemaRef the semantic analysis object for which we are performing
4816 Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc,
4821 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, Param, Template,
4833 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
4835 SemaRef, Sema::ExpressionEvaluationContext::ConstantEvaluated);
4836 return SemaRef.SubstTemplateArgument(Param->getDefaultArgument(),
4843 /// \param SemaRef the semantic analysis object for which we are performing
4866 Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc,
4872 SemaRef, TemplateLoc, TemplateParameter(Param), Template,
4883 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext());
4888 SemaRef.SubstNestedNameSpecifierLoc(QualifierLoc, TemplateArgLists);
4893 return SemaRef.SubstTemplateName(
10652 CurrentInstantiationRebuilder(Sema &SemaRef,
10655 : TreeTransform<CurrentInstantiationRebuilder>(SemaRef),