[Ada] Minor reformatting
authorHristian Kirtchev <kirtchev@adacore.com>
Mon, 21 May 2018 14:51:25 +0000 (14:51 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 21 May 2018 14:51:25 +0000 (14:51 +0000)
2018-05-21  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

* exp_ch3.adb: Minor reformatting.
* exp_ch6.adb: Likewise.
* freeze.adb: Likewise.
* inline.adb: Likewise.
* sem_util.adb: Likewise.

From-SVN: r260459

gcc/ada/ChangeLog
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch6.adb
gcc/ada/freeze.adb
gcc/ada/inline.adb
gcc/ada/sem_util.adb

index 19b1278b9b31bdd1f738947ec76213ebb0d60147..0720a9c34ea2fc1778becdb2fcded95eba86fe6d 100644 (file)
@@ -1,3 +1,11 @@
+2018-04-04  Hristian Kirtchev  <kirtchev@adacore.com>
+
+       * exp_ch3.adb: Minor reformatting.
+       * exp_ch6.adb: Likewise.
+       * freeze.adb: Likewise.
+       * inline.adb: Likewise.
+       * sem_util.adb: Likewise.
+
 2018-04-04  Yannick Moy  <moy@adacore.com>
 
        * inline.adb (Expand_Inlined_Call.Process_Formals): Use a type
index 78181730a3a5092afdc394f36bca01951c20f133..9d7fda4767db5fd301e21a90db6591300f68b7df 100644 (file)
@@ -6052,10 +6052,11 @@ package body Exp_Ch3 is
            and then not Has_Init_Expression (N)
          then
             Set_No_Initialization (N, False);
-            Set_Expression
-              (N, New_Copy_Tree
-                    (Get_Simple_Init_Val (Typ, N, Esize (Def_Id)),
-                     New_Sloc => Sloc (Obj_Def)));
+            Set_Expression (N,
+              New_Copy_Tree
+                (Source   => Get_Simple_Init_Val (Typ, N, Esize (Def_Id)),
+                 New_Sloc => Sloc (Obj_Def)));
+
             Analyze_And_Resolve (Expression (N), Typ);
          end if;
 
index c9d40433efd0a1040b60b83c154c12d56dda9366..21d87ef29dcb8c6625f984deb2534f4f81dce0b3 100644 (file)
@@ -8439,7 +8439,7 @@ package body Exp_Ch6 is
 
             begin
                while Present (N)
-                 and then Nkind_In (N, N_Pragma, N_Attribute_Reference)
+                 and then Nkind_In (N, N_Attribute_Reference, N_Pragma)
                loop
                   Analyze (N);
                   D := N;
index 08163ef90623251f1a427dfab72d8c23b6b13750..958f3e08c05cf71481e6332bd4dcaaee55eff391 100644 (file)
@@ -716,9 +716,8 @@ package body Freeze is
 
          if Present (Init)
            and then (Nkind (Init) /= N_Function_Call
-             or else not Is_Expanded_Build_In_Place_Call (Init))
+                      or else not Is_Expanded_Build_In_Place_Call (Init))
          then
-
             --  Capture initialization value at point of declaration, and make
             --  explicit assignment legal, because object may be a constant.
 
index e1c603f653e7f7f4f7efe0178b0004094a22f558..72cb5c00ac259e9edf2528fef9504173c03fbd9e 100644 (file)
@@ -2492,8 +2492,8 @@ package body Inline is
                --  type, because those must be resolved to a specific type.
 
                if Nkind_In (Expression (N), N_Aggregate,
-                                            N_Null,
                                             N_Character_Literal,
+                                            N_Null,
                                             N_String_Literal)
                  or else Yields_Universal_Type (Expression (N))
                then
index cba7c467af041934628710cab1408338c0a1ca51..55554417a8547f95d776657bf9201af3db54659e 100644 (file)
@@ -19533,9 +19533,7 @@ package body Sem_Util is
       begin
          --  Discriminant_Constraint
 
-         if Is_Type (Id)
-           and then Has_Discriminants (Base_Type (Id))
-         then
+         if Is_Type (Id) and then Has_Discriminants (Base_Type (Id)) then
             Set_Discriminant_Constraint (Id, Elist_Id (
               Copy_Field_With_Replacement
                 (Field    => Union_Id (Discriminant_Constraint (Id)),
@@ -19992,9 +19990,7 @@ package body Sem_Util is
 
          --  Discriminant_Constraint
 
-         if Is_Type (Id)
-           and then Has_Discriminants (Base_Type (Id))
-         then
+         if Is_Type (Id) and then Has_Discriminants (Base_Type (Id)) then
             Visit_Field
               (Field    => Union_Id (Discriminant_Constraint (Id)),
                Semantic => True);