Lines Matching defs:InitializedEntity
179 void CheckImplicitInitList(const InitializedEntity &Entity,
183 void CheckExplicitInitList(const InitializedEntity &Entity,
188 void CheckListElementTypes(const InitializedEntity &Entity,
195 void CheckSubElementType(const InitializedEntity &Entity,
200 void CheckComplexType(const InitializedEntity &Entity,
205 void CheckScalarType(const InitializedEntity &Entity,
210 void CheckReferenceType(const InitializedEntity &Entity,
215 void CheckVectorType(const InitializedEntity &Entity,
219 void CheckStructUnionTypes(const InitializedEntity &Entity,
226 void CheckArrayType(const InitializedEntity &Entity,
232 bool CheckDesignatedInitializer(const InitializedEntity &Entity,
255 const InitializedEntity &ParentEntity,
257 void FillInValueInitializations(const InitializedEntity &Entity,
259 bool CheckFlexibleArrayInit(const InitializedEntity &Entity,
262 void CheckValueInitializable(const InitializedEntity &Entity);
265 InitListChecker(Sema &S, const InitializedEntity &Entity,
276 void InitListChecker::CheckValueInitializable(const InitializedEntity &Entity) {
289 const InitializedEntity &ParentEntity,
294 InitializedEntity MemberEntity
295 = InitializedEntity::InitializeMember(Field, &ParentEntity);
352 InitListChecker::FillInValueInitializations(const InitializedEntity &Entity,
395 InitializedEntity ElementEntity = Entity;
402 ElementEntity = InitializedEntity::InitializeElement(SemaRef.Context,
407 ElementEntity = InitializedEntity::InitializeElement(SemaRef.Context,
417 if (ElementEntity.getKind() == InitializedEntity::EK_ArrayElement ||
418 ElementEntity.getKind() == InitializedEntity::EK_VectorElement)
444 if (ElementEntity.getKind() == InitializedEntity::EK_ArrayElement)
451 if (ElementEntity.getKind() == InitializedEntity::EK_ArrayElement) {
472 InitListChecker::InitListChecker(Sema &S, const InitializedEntity &Entity,
520 void InitListChecker::CheckImplicitInitList(const InitializedEntity &Entity,
593 void InitListChecker::CheckExplicitInitList(const InitializedEntity &Entity,
671 void InitListChecker::CheckListElementTypes(const InitializedEntity &Entity,
742 void InitListChecker::CheckSubElementType(const InitializedEntity &Entity,
867 void InitListChecker::CheckComplexType(const InitializedEntity &Entity,
893 InitializedEntity ElementEntity =
894 InitializedEntity::InitializeElement(SemaRef.Context, 0, Entity);
904 void InitListChecker::CheckScalarType(const InitializedEntity &Entity,
974 void InitListChecker::CheckReferenceType(const InitializedEntity &Entity,
1031 void InitListChecker::CheckVectorType(const InitializedEntity &Entity,
1045 InitializedEntity::InitializeElement(SemaRef.Context, 0, Entity));
1086 InitializedEntity ElementEntity =
1087 InitializedEntity::InitializeElement(SemaRef.Context, 0, Entity);
1104 InitializedEntity ElementEntity =
1105 InitializedEntity::InitializeElement(SemaRef.Context, 0, Entity);
1146 void InitListChecker::CheckArrayType(const InitializedEntity &Entity,
1237 InitializedEntity ElementEntity =
1238 InitializedEntity::InitializeElement(SemaRef.Context, StructuredIndex,
1269 CheckValueInitializable(InitializedEntity::InitializeElement(
1274 bool InitListChecker::CheckFlexibleArrayInit(const InitializedEntity &Entity,
1291 } else if (Entity.getKind() != InitializedEntity::EK_Variable) {
1313 void InitListChecker::CheckStructUnionTypes(const InitializedEntity &Entity,
1339 InitializedEntity::InitializeMember(*Field, &Entity));
1415 InitializedEntity MemberEntity =
1416 InitializedEntity::InitializeMember(*Field, &Entity);
1452 InitializedEntity::InitializeMember(*Field, &Entity));
1467 InitializedEntity MemberEntity =
1468 InitializedEntity::InitializeMember(*Field, &Entity);
1593 InitListChecker::CheckDesignatedInitializer(const InitializedEntity &Entity,
1846 InitializedEntity MemberEntity =
1847 InitializedEntity::InitializeMember(*Field, &Entity);
1865 InitializedEntity MemberEntity =
1866 InitializedEntity::InitializeMember(*Field, &Entity);
1996 InitializedEntity ElementEntity =
1997 InitializedEntity::InitializeElement(SemaRef.Context, 0, Entity);
2286 InitializedEntity::InitializedEntity(ASTContext &Context, unsigned Index,
2287 const InitializedEntity &Parent)
2304 InitializedEntity InitializedEntity::InitializeBase(ASTContext &Context,
2308 InitializedEntity Result;
2318 DeclarationName InitializedEntity::getName() const {
2348 DeclaratorDecl *InitializedEntity::getDecl() const {
2374 bool InitializedEntity::allowsNRVO() const {
2686 const InitializedEntity &Entity) {
2691 if (Entity.getKind() == InitializedEntity::EK_Parameter) {
2703 } else if (Entity.getKind() == InitializedEntity::EK_Result) {
2768 InitializedEntity HiddenArray = InitializedEntity::InitializeTemporary(
2773 InitializedEntity Element = InitializedEntity::InitializeElement(S.Context,
2861 const InitializedEntity &Entity,
3012 const InitializedEntity &Entity,
3022 const InitializedEntity &Entity,
3029 const InitializedEntity &Entity,
3078 InitializedEntity TempEntity = InitializedEntity::InitializeTemporary(cv1T1);
3093 const InitializedEntity &Entity,
3147 const InitializedEntity &Entity,
3333 const InitializedEntity &Entity,
3338 const InitializedEntity &Entity,
3364 const InitializedEntity &Entity,
3542 InitializedEntity TempEntity = InitializedEntity::InitializeTemporary(cv1T1);
3597 const InitializedEntity &Entity,
3606 const InitializedEntity &Entity,
3658 const InitializedEntity &Entity,
3697 const InitializedEntity &Entity,
3946 const InitializedEntity &Entity,
3992 const InitializedEntity &Entity,
4107 Entity.getKind() == InitializedEntity::EK_Member &&
4123 Entity.getKind() == InitializedEntity::EK_Parameter;
4241 getAssignmentAction(const InitializedEntity &Entity) {
4243 case InitializedEntity::EK_Variable:
4244 case InitializedEntity::EK_New:
4245 case InitializedEntity::EK_Exception:
4246 case InitializedEntity::EK_Base:
4247 case InitializedEntity::EK_Delegating:
4250 case InitializedEntity::EK_Parameter:
4257 case InitializedEntity::EK_Result:
4260 case InitializedEntity::EK_Temporary:
4264 case InitializedEntity::EK_Member:
4265 case InitializedEntity::EK_ArrayElement:
4266 case InitializedEntity::EK_VectorElement:
4267 case InitializedEntity::EK_ComplexElement:
4268 case InitializedEntity::EK_BlockElement:
4269 case InitializedEntity::EK_LambdaCapture:
4278 static bool shouldBindAsTemporary(const InitializedEntity &Entity) {
4280 case InitializedEntity::EK_ArrayElement:
4281 case InitializedEntity::EK_Member:
4282 case InitializedEntity::EK_Result:
4283 case InitializedEntity::EK_New:
4284 case InitializedEntity::EK_Variable:
4285 case InitializedEntity::EK_Base:
4286 case InitializedEntity::EK_Delegating:
4287 case InitializedEntity::EK_VectorElement:
4288 case InitializedEntity::EK_ComplexElement:
4289 case InitializedEntity::EK_Exception:
4290 case InitializedEntity::EK_BlockElement:
4291 case InitializedEntity::EK_LambdaCapture:
4294 case InitializedEntity::EK_Parameter:
4295 case InitializedEntity::EK_Temporary:
4299 llvm_unreachable("missed an InitializedEntity kind?");
4304 static bool shouldDestroyTemporary(const InitializedEntity &Entity) {
4306 case InitializedEntity::EK_Member:
4307 case InitializedEntity::EK_Result:
4308 case InitializedEntity::EK_New:
4309 case InitializedEntity::EK_Base:
4310 case InitializedEntity::EK_Delegating:
4311 case InitializedEntity::EK_VectorElement:
4312 case InitializedEntity::EK_ComplexElement:
4313 case InitializedEntity::EK_BlockElement:
4314 case InitializedEntity::EK_LambdaCapture:
4317 case InitializedEntity::EK_Variable:
4318 case InitializedEntity::EK_Parameter:
4319 case InitializedEntity::EK_Temporary:
4320 case InitializedEntity::EK_ArrayElement:
4321 case InitializedEntity::EK_Exception:
4325 llvm_unreachable("missed an InitializedEntity kind?");
4373 static SourceLocation getInitializationLoc(const InitializedEntity &Entity,
4376 case InitializedEntity::EK_Result:
4379 case InitializedEntity::EK_Exception:
4382 case InitializedEntity::EK_Variable:
4385 case InitializedEntity::EK_LambdaCapture:
4388 case InitializedEntity::EK_ArrayElement:
4389 case InitializedEntity::EK_Member:
4390 case InitializedEntity::EK_Parameter:
4391 case InitializedEntity::EK_Temporary:
4392 case InitializedEntity::EK_New:
4393 case InitializedEntity::EK_Base:
4394 case InitializedEntity::EK_Delegating:
4395 case InitializedEntity::EK_VectorElement:
4396 case InitializedEntity::EK_ComplexElement:
4397 case InitializedEntity::EK_BlockElement:
4400 llvm_unreachable("missed an InitializedEntity kind?");
4425 const InitializedEntity &Entity,
4558 const InitializedEntity &Entity,
4609 const InitializedEntity &Entity) {
4610 if (Entity.getKind() == InitializedEntity::EK_Parameter && Entity.getDecl()) {
4629 const InitializedEntity &Entity,
4675 if (Entity.getKind() == InitializedEntity::EK_Temporary &&
4705 if (Entity.getKind() == InitializedEntity::EK_Base) {
4709 } else if (Entity.getKind() == InitializedEntity::EK_Delegating) {
4753 const InitializedEntity &Entity,
5121 InitializedEntity TempEntity = InitializedEntity::InitializeTemporary(Ty);
5152 InitializedEntity TempEntity = InitializedEntity::InitializeTemporary(
5187 InitializedEntity TempEntity = InitializedEntity::InitializeTemporary(
5235 Entity.getKind() == InitializedEntity::EK_Parameter &&
5335 InitializedEntity HiddenArray = InitializedEntity::InitializeTemporary(
5340 InitializedEntity Element =InitializedEntity::InitializeElement(S.Context,
5364 if (Entity.getKind() == InitializedEntity::EK_Member &&
5377 const InitializedEntity &Entity,
5593 (Entity.getKind() == InitializedEntity::EK_Base ||
5594 Entity.getKind() == InitializedEntity::EK_Member) &&
5602 if (Entity.getKind() == InitializedEntity::EK_Base) {
5670 if (Entity.getKind() == InitializedEntity::EK_Member &&
5721 InitializedEntity HiddenArray = InitializedEntity::InitializeTemporary(
5726 InitializedEntity Element = InitializedEntity::InitializeElement(S.Context,
6125 Sema::CanPerformCopyInitialization(const InitializedEntity &Entity,
6140 Sema::PerformCopyInitialization(const InitializedEntity &Entity,