...which seems clearer.
Still work in progress.
gcc/ada/
* cstand.adb (Is_Past_Self_Hiding_Point): Rename to be
Is_Not_Self_Hidden.
* einfo.ads: Likewise.
* exp_aggr.adb: Likewise.
* gen_il-fields.ads: Likewise.
* gen_il-gen-gen_entities.adb: Likewise.
* sem.adb: Likewise.
* sem_aggr.adb: Likewise.
* sem_ch11.adb: Likewise.
* sem_ch12.adb: Likewise.
* sem_ch5.adb: Likewise.
* sem_ch6.adb: Likewise.
* sem_ch7.adb: Likewise.
* sem_prag.adb: Likewise.
Set_Is_Immediately_Visible (Ident_Node, True);
Set_Is_Intrinsic_Subprogram (Ident_Node, True);
- Set_Is_Past_Self_Hiding_Point (Ident_Node);
+ Set_Is_Not_Self_Hidden (Ident_Node);
Set_Name_Entity_Id (Op, Ident_Node);
Append_Entity (Ident_Node, Standard_Standard);
-- frozen and not self-hidden as soon as they are created.
Set_Is_Frozen (E);
- Set_Is_Past_Self_Hiding_Point (E);
+ Set_Is_Not_Self_Hidden (E);
-- Set debug information required for all standard types
-- procedure which verifies the invariants of the partial view of a
-- private type or private extension.
--- Is_Past_Self_Hiding_Point
+-- Is_Not_Self_Hidden
-- Defined in all entities. Roughly speaking, this is False if the
-- declaration of the entity is hidden from all visibility because
-- we are within its declaration, as defined by 8.3(16-18). When
-- Is_Obsolescent
-- Is_Package_Body_Entity
-- Is_Packed_Array_Impl_Type
- -- Is_Past_Self_Hiding_Point
+ -- Is_Not_Self_Hidden
-- Is_Potentially_Use_Visible
-- Is_Preelaborated
-- Is_Primitive_Wrapper
Set_Etype (L_J, Any_Type);
Mutate_Ekind (L_J, E_Variable);
- Set_Is_Past_Self_Hiding_Point (L_J);
+ Set_Is_Not_Self_Hidden (L_J);
Set_Scope (L_J, Ent);
else
L_J := Make_Temporary (Loc, 'J', L);
Is_Package_Body_Entity,
Is_Packed,
Is_Packed_Array_Impl_Type,
- Is_Past_Self_Hiding_Point,
+ Is_Not_Self_Hidden,
Is_Param_Block_Component_Type,
Is_Partial_Invariant_Procedure,
Is_Potentially_Use_Visible,
Sm (Is_Package_Body_Entity, Flag),
Sm (Is_Packed, Flag, Impl_Base_Type_Only),
Sm (Is_Packed_Array_Impl_Type, Flag),
- Sm (Is_Past_Self_Hiding_Point, Flag),
+ Sm (Is_Not_Self_Hidden, Flag),
Sm (Is_Potentially_Use_Visible, Flag),
Sm (Is_Preelaborated, Flag),
Sm (Is_Private_Descendant, Flag),
Debug_A_Exit ("analyzing ", N, " (done)");
- -- Set Is_Past_Self_Hiding_Point flag. RM-8.3(16) says a declaration
+ -- Set Is_Not_Self_Hidden flag. RM-8.3(16) says a declaration
-- is no longer hidden from all visibility after "the end of the
-- declaration", so we set the flag here (in addition to setting it
-- elsewhere to handle the "except..." cases of 8.3(16)). However,
and then Ekind (Scope (E)) = E_Record_Type
then
null; -- Set it later, in Analyze_Component_Declaration
- elsif not Is_Past_Self_Hiding_Point (E) then
- Set_Is_Past_Self_Hiding_Point (E);
+ elsif not Is_Not_Self_Hidden (E) then
+ Set_Is_Not_Self_Hidden (E);
end if;
end if;
end;
Set_Etype (Id, Index_Typ);
Mutate_Ekind (Id, E_Variable);
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
Set_Scope (Id, Scop);
end if;
end if;
Mutate_Ekind (Id, E_Variable);
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
Set_Scope (Id, Ent);
Set_Referenced (Id);
if No (Scope (Id)) then
Set_Etype (Id, Index_Type);
Mutate_Ekind (Id, E_Variable);
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
Set_Scope (Id, Ent);
end if;
Enter_Name (Id);
Enter_Name (Choice);
Mutate_Ekind (Choice, E_Variable);
- Set_Is_Past_Self_Hiding_Point (Choice);
+ Set_Is_Not_Self_Hidden (Choice);
if RTE_Available (RE_Exception_Occurrence) then
Set_Etype (Choice, RTE (RE_Exception_Occurrence));
Renaming_In_Par :=
Make_Defining_Identifier (Loc, Chars (Gen_Unit));
Mutate_Ekind (Renaming_In_Par, E_Package);
- Set_Is_Past_Self_Hiding_Point (Renaming_In_Par);
+ Set_Is_Not_Self_Hidden (Renaming_In_Par);
Set_Etype (Renaming_In_Par, Standard_Void_Type);
Set_Scope (Renaming_In_Par, Parent_Instance);
Set_Parent (Renaming_In_Par, Parent (Formal));
Enter_Name (Id);
Mutate_Ekind (Id, E_Generic_Package);
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
Set_Etype (Id, Standard_Void_Type);
-- Set SPARK_Mode from context
Set_Etype (Id, Standard_Void_Type);
end if;
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
-- Analyze the aspects of the generic copy to ensure that all generated
-- pragmas (if any) perform their semantic effects.
Generate_Definition (Act_Decl_Id);
Mutate_Ekind (Act_Decl_Id, E_Package);
- Set_Is_Past_Self_Hiding_Point (Act_Decl_Id);
+ Set_Is_Not_Self_Hidden (Act_Decl_Id);
-- Initialize list of incomplete actuals before analysis
-- iterator name.
Mutate_Ekind (Def_Id, E_Variable);
- Set_Is_Past_Self_Hiding_Point (Def_Id);
+ Set_Is_Not_Self_Hidden (Def_Id);
-- Provide a link between the iterator variable and the container, for
-- subsequent use in cross-reference and modification information.
else
Mutate_Ekind (Def_Id, E_Loop_Parameter);
- Set_Is_Past_Self_Hiding_Point (Def_Id);
+ Set_Is_Not_Self_Hidden (Def_Id);
Error_Msg_Ada_2012_Feature ("container iterator", Sloc (N));
-- OF present
if Has_Aspect (Typ, Aspect_Variable_Indexing) then
Mutate_Ekind (Def_Id, E_Variable);
- Set_Is_Past_Self_Hiding_Point (Def_Id);
+ Set_Is_Not_Self_Hidden (Def_Id);
end if;
-- If the container is a constant, iterating over it
end if;
Mutate_Ekind (Id, E_Loop_Parameter);
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
-- A quantified expression which appears in a pre- or post-condition may
-- be analyzed multiple times. The analysis of the range creates several
Set_Etype (Designator, Standard_Void_Type);
end if;
- Set_Is_Past_Self_Hiding_Point (Designator);
+ Set_Is_Not_Self_Hidden (Designator);
-- Flag Is_Inlined_Always is True by default, and reversed to False for
-- those subprograms which could be inlined in GNATprove mode (because
Mutate_Ekind (Formal_Id, E_In_Parameter);
end if;
- Set_Is_Past_Self_Hiding_Point (Formal_Id);
+ Set_Is_Not_Self_Hidden (Formal_Id);
-- Set Is_Known_Non_Null for access parameters since the language
-- guarantees that access parameters are always non-null. We also set
Generate_Definition (Id);
Enter_Name (Id);
Mutate_Ekind (Id, E_Package);
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
-- Needed early because of Set_Categorization_From_Pragmas below
Set_Etype (Id, Standard_Void_Type);
Mutate_Ekind (Id, E_Private_Type);
end if;
- Set_Is_Past_Self_Hiding_Point (Id);
+ Set_Is_Not_Self_Hidden (Id);
Set_Etype (Id, Id);
Set_Has_Delayed_Freeze (Id);
Set_Is_First_Subtype (Id);
Set_Comes_From_Source (State_Id, not Is_Null);
Set_Parent (State_Id, State);
Mutate_Ekind (State_Id, E_Abstract_State);
- Set_Is_Past_Self_Hiding_Point (State_Id);
+ Set_Is_Not_Self_Hidden (State_Id);
Set_Etype (State_Id, Standard_Void_Type);
Set_Encapsulating_State (State_Id, Empty);