Skip to content

Commit

Permalink
ada: Enrich documentation of subprogram
Browse files Browse the repository at this point in the history
This patch adds documentation to the subprogram Replace_Type in
Sem_Ch3. In particular, references to relevant parts of the Ada
reference manual are added.

gcc/ada/

	* sem_ch3.adb (Replace_Type): Add more documentation.

Tested on x86_64-pc-linux-gnu, committed on master.
  • Loading branch information
ronan-d authored and ouuleilei-bot committed May 25, 2023
1 parent c2d62cd commit 934fceb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcc/ada/sem_ch3.adb
Original file line number Diff line number Diff line change
Expand Up @@ -15863,7 +15863,11 @@ package body Sem_Ch3 is
-- derived type.

procedure Replace_Type (Id, New_Id : Entity_Id);
-- When the type is an anonymous access type, create a new access type
-- Set the Etype of New_Id to the appropriate subtype determined from
-- the Etype of Id, following (RM 3.4 (18, 19, 20, 21)). Id is either
-- the parent type's primitive subprogram or one of its formals, and
-- New_Id is the corresponding entity for the derived type. When the
-- Etype of Id is an anonymous access type, create a new access type
-- designating the derived type.

procedure Set_Derived_Name;
Expand Down

0 comments on commit 934fceb

Please sign in to comment.