Lines Matching defs:Init
3958 Sema::DeduceAutoType(TypeSourceInfo *Type, Expr *&Init, QualType &Result) {
3959 return DeduceAutoType(Type->getTypeLoc(), Init, Result);
3965 /// \param Init the initializer for the variable whose type is to be deduced.
3969 Sema::DeduceAutoType(TypeLoc Type, Expr *&Init, QualType &Result) {
3970 if (Init->getType()->isNonOverloadPlaceholderType()) {
3971 ExprResult NonPlaceholder = CheckPlaceholderExpr(Init);
3974 Init = NonPlaceholder.get();
3977 if (Init->isTypeDependent() || Type.getType()->isDependentType()) {
3988 if (isa<InitListExpr>(Init)) {
3989 Diag(Init->getLocStart(), diag::err_decltype_auto_initializer_list);
3993 QualType Deduced = BuildDecltypeType(Init, Init->getLocStart());
4003 SourceLocation Loc = Init->getExprLoc();
4020 // Deduce type of TemplParam in Func(Init)
4023 QualType InitType = Init->getType();
4028 InitListExpr *InitList = dyn_cast<InitListExpr>(Init);
4039 FuncParam, InitType, Init,
4088 void Sema::DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init) {
4089 if (isa<InitListExpr>(Init))
4094 << VDecl->getDeclName() << VDecl->getType() << Init->getSourceRange();
4099 << VDecl->getDeclName() << VDecl->getType() << Init->getType()
4100 << Init->getSourceRange();