Commit 611d5e3c by Arnaud Charlet

Minor reformatting.

From-SVN: r247138
parent 605afee8
...@@ -1657,6 +1657,7 @@ package body Rtsfind is ...@@ -1657,6 +1657,7 @@ package body Rtsfind is
pragma Assert (GNATprove_Mode); pragma Assert (GNATprove_Mode);
-- Force loading of a predefined unit -- Force loading of a predefined unit
Unused := RTE (E); Unused := RTE (E);
end SPARK_Implicit_Load; end SPARK_Implicit_Load;
......
...@@ -12688,7 +12688,6 @@ package body Sem_Ch13 is ...@@ -12688,7 +12688,6 @@ package body Sem_Ch13 is
E : Entity_Id; E : Entity_Id;
begin begin
-- Types with nameable components are records and discriminated -- Types with nameable components are records and discriminated
-- private types. -- private types.
...@@ -12705,7 +12704,7 @@ package body Sem_Ch13 is ...@@ -12705,7 +12704,7 @@ package body Sem_Ch13 is
end loop; end loop;
end if; end if;
-- Nothing by that name, or type has no components. -- Nothing by that name, or the type has no components
return Empty; return Empty;
end Visible_Component; end Visible_Component;
......
...@@ -1391,8 +1391,8 @@ package body Sem_Ch6 is ...@@ -1391,8 +1391,8 @@ package body Sem_Ch6 is
Null_Body := Null_Body :=
Make_Subprogram_Body (Loc, Make_Subprogram_Body (Loc,
Specification => New_Copy_Tree (Spec), Specification => New_Copy_Tree (Spec),
Declarations => New_List, Declarations => New_List,
Handled_Statement_Sequence => Handled_Statement_Sequence =>
Make_Handled_Sequence_Of_Statements (Loc, Make_Handled_Sequence_Of_Statements (Loc,
Statements => New_List (Null_Stmt))); Statements => New_List (Null_Stmt)));
...@@ -1430,24 +1430,24 @@ package body Sem_Ch6 is ...@@ -1430,24 +1430,24 @@ package body Sem_Ch6 is
return; return;
else else
-- Resolve the types of the formals now, because the freeze point -- Resolve the types of the formals now, because the freeze point may
-- may appear in a different context, e.g. an instantiation. -- appear in a different context, e.g. an instantiation.
Form := First (Parameter_Specifications (Specification (Null_Body))); Form := First (Parameter_Specifications (Specification (Null_Body)));
while Present (Form) loop while Present (Form) loop
if Nkind (Parameter_Type (Form)) /= N_Access_Definition then if Nkind (Parameter_Type (Form)) /= N_Access_Definition then
Find_Type (Parameter_Type (Form)); Find_Type (Parameter_Type (Form));
elsif elsif No (Access_To_Subprogram_Definition
No (Access_To_Subprogram_Definition (Parameter_Type (Form))) (Parameter_Type (Form)))
then then
Find_Type (Subtype_Mark (Parameter_Type (Form))); Find_Type (Subtype_Mark (Parameter_Type (Form)));
else -- The case of a null procedure with a formal that is an
-- The case of a null procedure with a formal that is an -- access-to-subprogram type, and that is used as an actual
-- access_to_subprogram type, and that is used as an actual -- in an instantiation is left to the enthusiastic reader.
-- in an instantiation is left to the enthusiastic reader.
else
null; null;
end if; end if;
...@@ -1455,8 +1455,8 @@ package body Sem_Ch6 is ...@@ -1455,8 +1455,8 @@ package body Sem_Ch6 is
end loop; end loop;
end if; end if;
-- If there are previous overloadable entities with the same name, -- If there are previous overloadable entities with the same name, check
-- check whether any of them is completed by the null procedure. -- whether any of them is completed by the null procedure.
if Present (Prev) and then Is_Overloadable (Prev) then if Present (Prev) and then Is_Overloadable (Prev) then
Designator := Analyze_Subprogram_Specification (Spec); Designator := Analyze_Subprogram_Specification (Spec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment