Lines Matching refs:Init
1654 ExprResult Init = InitExpr;
1667 Init
1668 if (Init.isInvalid()) {
1673 CheckImplicitConversions(Init.get(), EqualLoc);
1676 // C++0x [class.base.init]p7:
1679 Init = MaybeCreateExprWithCleanups(Init);
1680 if (Init.isInvalid()) {
1685 InitExpr = Init.release();
1735 /// \brief Handle a C++ member initializer using braced-init-list syntax.
1804 Expr *Init,
1823 // C++ [class.base.init]p2:
1844 << SourceRange(IdLoc, Init->getSourceRange().getEnd());
1846 return BuildMemberInitializer(Member, Init, IdLoc);
1907 return BuildMemberInitializer(Member, Init, IdLoc);
1935 << MemberOrBase << SourceRange(IdLoc,Init->getSourceRange().getEnd());
1955 return BuildBaseInitializer(BaseType, TInfo, Init, ClassDecl, EllipsisLoc);
1961 Expr *Init,
1973 = dyn_cast<UnaryOperator>(Init->IgnoreParenImpCasts())) {
1979 Init = Op->getSubExpr();
1986 if (isa<MaterializeTemporaryExpr>(Init->IgnoreParens())) {
1991 S.Diag(Init->getExprLoc(), diag::warn_bind_ref_member_to_temporary)
1992 << Member << Init->getSourceRange();
1994 = dyn_cast<DeclRefExpr>(Init->IgnoreParens())) {
2000 S.Diag(Init->getExprLoc(),
2003 << Member << Parameter << Init->getSourceRange();
2082 Sema::BuildMemberInitializer(ValueDecl *Member, Expr *Init,
2089 if (DiagnoseUnexpandedParameterPack(Init
2101 if (ParenListExpr *ParenList = dyn_cast<ParenListExpr>(Init)) {
2105 InitListExpr *InitList = cast<InitListExpr>(Init);
2122 SourceRange InitRange = Init->getSourceRange();
2124 if (Member->getType()->isDependentType() || Init->isTypeDependent()) {
2130 if (isa<InitListExpr>(Init)) {
2132 Args = &Init;
2160 // C++0x [class.base.init]p7:
2175 // The existing Init will do fine.
2177 Init = MemberInit.get();
2178 CheckForDanglingReferenceOrPointer(*this, Member, Init, IdLoc);
2184 InitRange.getBegin(), Init,
2188 InitRange.getBegin(), Init,
2194 Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo, Expr *Init,
2203 Expr **Args = &Init;
2205 if (ParenListExpr *ParenList = dyn_cast<ParenListExpr>(Init)) {
2211 SourceRange InitRange = Init->getSourceRange();
2231 // C++0x [class.base.init]p7:
2245 Expr *Init, CXXRecordDecl *ClassDecl,
2254 // C++ [class.base.init]p2:
2260 bool Dependent = BaseType->isDependentType() || Init->isTypeDependent();
2262 SourceRange InitRange = Init->getSourceRange();
2276 if (DiagnoseUnexpandedParameterPack(Init, UPPC_Initializer))
2286 return BuildDelegatingInitializer(BaseTInfo, Init, ClassDecl);
2291 // C++ [base.class.init]p2:
2315 InitRange.getBegin(), Init,
2319 // C++ [base.class.init]p2:
2333 Expr **Args = &Init;
2335 if (ParenListExpr *ParenList = dyn_cast<ParenListExpr>(Init)) {
2356 // C++0x [class.base.init]p7:
2371 BaseInit = Owned(Init);
2637 assert(ImplicitInitKind == IIK_Default && "Unhandled implicit init kind!");
2781 if (CXXCtorInitializer *Init = Info.AllBaseFields.lookup(Field)) {
2782 Info.AllToInit.push_back(Init);
2786 // C++0x [class.base.init]p8: if the entity is a non-static data member that
2788 // in [dcl.init].
2790 CXXCtorInitializer *Init;
2792 Init = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Indirect,
2797 Init = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field,
2801 Info.AllToInit.push_back(Init);
2821 CXXCtorInitializer *Init = 0;
2823 Indirect, Init))
2826 if (Init)
2827 Info.AllToInit.push_back(Init);
3054 CXXCtorInitializer *Init = Inits[InitIndex];
3056 Init->getSourceLocation())
3100 CXXCtorInitializer *Init = Inits[InitIndex];
3101 void *InitKey = GetKeyForMember(SemaRef.Context, Init);
3122 if (Init->isAnyMemberInitializer())
3123 D << 0 << Init->getAnyMember()->getDeclName();
3125 D << 1 << Init->getTypeSourceInfo()->getType();
3136 PrevInit = Init;
3142 CXXCtorInitializer *Init,
3145 PrevInit = Init;
3149 if (FieldDecl *Field = Init->getMember())
3150 S.Diag(Init->getSourceLocation(),
3153 << Init->getSourceRange();
3155 const Type *BaseClass = Init->getBaseClass();
3157 S.Diag(Init->getSourceLocation(),
3160 << Init->getSourceRange();
3172 CXXCtorInitializer *Init,
3174 FieldDecl *Field = Init->getAnyMember();
3182 S.Diag(Init->getSourceLocation(),
3185 << Init->getSourceRange();
3192 En.second = Init;
3238 CXXCtorInitializer *Init = MemInits[i];
3241 Init->setSourceOrder(i);
3243 if (Init->isAnyMemberInitializer()) {
3244 FieldDecl *Field = Init->getAnyMember();
3245 if (CheckRedundantInit(*this, Init, Members[Field]) ||
3246 CheckRedundantUnionInit(*this, Init, MemberUnions))
3248 } else if (Init->isBaseInitializer()) {
3249 void *Key = GetKeyForBase(Context, QualType(Init->getBaseClass(), 0));
3250 if (CheckRedundantInit(*this, Init, Members[Key]))
3253 assert(Init->isDelegatingInitializer());
5740 // C++ [dcl.init.list]p2:
9775 Expr *init = MaybeCreateExprWithCleanups(construct);
9776 ExDecl->setInit(init);