]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Add inline documentation for Is_{Parenthesis,Enum_Array}_Aggregate
authorMarc Poulhiès <poulhies@adacore.com>
Thu, 21 Apr 2022 09:10:22 +0000 (11:10 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Jun 2022 08:43:16 +0000 (08:43 +0000)
Both flags were added when square brackets for array/container
aggregates have been enabled with -gnat2022 without their corresponding
inline documentation. This change adds the missing documention.

gcc/ada/

* sinfo.ads: Add inline documention for Is_Parenthesis_Aggregate
and Is_Enum_Array_Aggregate.

gcc/ada/sinfo.ads

index da42ae51e6fde0e5609e8e7096f61b2348b140a9..87042bd97f6b6c666b547ca8036ef11eb2cbcb9f 100644 (file)
@@ -1680,6 +1680,10 @@ package Sinfo is
    --    nodes which emulate the barrier function of a protected entry body.
    --    The flag is used when checking for incorrect use of Current_Task.
 
+   --  Is_Enum_Array_Aggregate
+   --    A flag set on an aggregate created internally while building the
+   --    images tables for enumerations.
+
    --  Is_Expanded_Build_In_Place_Call
    --    This flag is set in an N_Function_Call node to indicate that the extra
    --    actuals to support a build-in-place style of call have been added to
@@ -1794,6 +1798,9 @@ package Sinfo is
    --    overloading determination. The setting of this flag is not relevant
    --    once overloading analysis is complete.
 
+   --  Is_Parenthesis_Aggregate
+   --    A flag set on an aggregate that uses parentheses as delimiters
+
    --  Is_Power_Of_2_For_Shift
    --    A flag present only in N_Op_Expon nodes. It is set when the
    --    exponentiation is of the form 2 ** N, where the type of N is an
@@ -4024,7 +4031,9 @@ package Sinfo is
       --  Compile_Time_Known_Aggregate
       --  Expansion_Delayed
       --  Has_Self_Reference
+      --  Is_Enum_Array_Aggregate
       --  Is_Homogeneous_Aggregate
+      --  Is_Parenthesis_Aggregate
       --  plus fields for expression
 
       --  Note: this structure is used for both record and array aggregates