[Ada] Couple of formatting and stylistic fixes
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 8 Apr 2020 07:49:01 +0000 (09:49 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 16 Jun 2020 13:07:16 +0000 (09:07 -0400)
2020-06-16  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* freeze.adb (Freeze_Expression): Use consistent style and
formatting in a couple of cases.

gcc/ada/freeze.adb

index 47a063a..0f6739f 100644 (file)
@@ -7624,11 +7624,8 @@ package body Freeze is
                --  case of array types.
 
                when N_Expression_With_Actions =>
-                  if Is_List_Member (P)
-                    and then List_Containing (P) = Actions (Parent_P)
-                  then
-                     exit;
-                  end if;
+                  exit when Is_List_Member (P)
+                    and then List_Containing (P) = Actions (Parent_P);
 
                --  N_Loop_Statement is a special case: a type that appears in
                --  the source can never be frozen in a loop (this occurs only
@@ -7641,7 +7638,8 @@ package body Freeze is
 
                when N_Loop_Statement
                   | N_If_Expression
-                  | N_Case_Expression =>
+                  | N_Case_Expression
+               =>
                   exit when not Comes_From_Source (Etype (N))
                     and then (No (Nam) or else not Comes_From_Source (Nam));