Commit 6f99dcec by Hristian Kirtchev Committed by Arnaud Charlet

sem_ch12.adb, [...]: Minor reformatting.

2015-10-23  Hristian Kirtchev  <kirtchev@adacore.com>

	* sem_ch12.adb, exp_ch6.adb: Minor reformatting.

From-SVN: r229251
parent a1c09064
2015-10-23 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch12.adb, exp_ch6.adb: Minor reformatting.
2015-10-23 Gary Dismukes <dismukes@adacore.com> 2015-10-23 Gary Dismukes <dismukes@adacore.com>
* exp_ch6.adb: Minor reformatting. * exp_ch6.adb: Minor reformatting.
......
...@@ -9598,7 +9598,7 @@ package body Exp_Ch6 is ...@@ -9598,7 +9598,7 @@ package body Exp_Ch6 is
begin begin
Actuals := Parameter_Associations (N); Actuals := Parameter_Associations (N);
-- Original function may have been parameterless -- The original function may lack parameters
if No (Actuals) then if No (Actuals) then
Actuals := New_List; Actuals := New_List;
......
...@@ -6151,17 +6151,17 @@ package body Sem_Ch12 is ...@@ -6151,17 +6151,17 @@ package body Sem_Ch12 is
else else
Formal_Decl := Parent (Associated_Formal_Package (E)); Formal_Decl := Parent (Associated_Formal_Package (E));
-- Nothing to check if the formal has a box or an -- Nothing to check if the formal has a box or an others_clause
-- others_clause (necessarily with a box). -- (necessarily with a box).
if Box_Present (Formal_Decl) then if Box_Present (Formal_Decl) then
null; null;
elsif Nkind (First (Generic_Associations (Formal_Decl))) = elsif Nkind (First (Generic_Associations (Formal_Decl))) =
N_Others_Choice N_Others_Choice
then then
-- The internal validating package was generated but -- The internal validating package was generated but formal
-- formal and instance are known to be compatible.. -- and instance are known to be compatible.
Formal_P := Next_Entity (E); Formal_P := Next_Entity (E);
Remove (Unit_Declaration_Node (Formal_P)); Remove (Unit_Declaration_Node (Formal_P));
...@@ -6172,8 +6172,8 @@ package body Sem_Ch12 is ...@@ -6172,8 +6172,8 @@ package body Sem_Ch12 is
-- After checking, remove the internal validating package. -- After checking, remove the internal validating package.
-- It is only needed for semantic checks, and as it may -- It is only needed for semantic checks, and as it may
-- contain generic formal declarations it should not -- contain generic formal declarations it should not reach
-- reach gigi. -- gigi.
Remove (Unit_Declaration_Node (Formal_P)); Remove (Unit_Declaration_Node (Formal_P));
end if; end if;
......
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