]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Remove extra space after assignment symbol
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 23 Nov 2021 11:22:27 +0000 (12:22 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 2 Dec 2021 16:26:23 +0000 (16:26 +0000)
gcc/ada/

* exp_aggr.adb, exp_ch6.adb, par-ch4.adb, sem_ch13.adb: Remove
extra space after ":=" symbol.
* gen_il-gen.adb: Likewise; add missing headerbox.

gcc/ada/exp_aggr.adb
gcc/ada/exp_ch6.adb
gcc/ada/gen_il-gen.adb
gcc/ada/par-ch4.adb
gcc/ada/sem_ch13.adb

index af39ba58e1463623923ba849819e5b30802dcf30..bdb483e1138f46efcef4ab8c262551c094b68b00 100644 (file)
@@ -7546,11 +7546,11 @@ package body Exp_Aggr is
                  Parameter_Associations => Params));
          end if;
 
-         Loop_Stat :=  Make_Implicit_Loop_Statement
-                         (Node             => N,
-                          Identifier       => Empty,
-                          Iteration_Scheme => L_Iteration_Scheme,
-                          Statements       => Stats);
+         Loop_Stat := Make_Implicit_Loop_Statement
+                        (Node             => N,
+                         Identifier       => Empty,
+                         Iteration_Scheme => L_Iteration_Scheme,
+                         Statements       => Stats);
          Append (Loop_Stat, Aggr_Code);
 
       end Expand_Iterated_Component;
@@ -7825,7 +7825,7 @@ package body Exp_Aggr is
                --  required size for the aggregwte : call the provided
                --  constructor rather than the Empty aggregate.
 
-               Index :=  Make_Op_Add (Loc,
+               Index := Make_Op_Add (Loc,
                  Left_Opnd => New_Copy_Tree (Type_Low_Bound (Index_Type)),
                  Right_Opnd => Make_Integer_Literal (Loc, Siz - 1));
 
index fa1a89a0c649a4790b8f56e2d6fb79ed5adb54d9..f433fa7a1656a7c806a8ab5297bdc8dd76619eb0 100644 (file)
@@ -10206,7 +10206,7 @@ package body Exp_Ch6 is
       --  If function is inherited, a conversion may be necessary.
 
       if Nkind (Par) = N_Assignment_Statement then
-         Last_Actual :=  Name (Par);
+         Last_Actual := Name (Par);
 
          if not Comes_From_Source (Orig_Func)
            and then Etype (Orig_Func) /= Etype (Func_Id)
index f058c5a7f7ade1132de22a410fceee6e6a0e23d8..2e81149307c26c026921de018eabbe407f130630 100644 (file)
@@ -2135,9 +2135,13 @@ package body Gen_IL.Gen is
 
                procedure One_Comp (F : Field_Enum);
 
+               --------------
+               -- One_Comp --
+               --------------
+
                procedure One_Comp (F : Field_Enum) is
                   pragma Annotate (Codepeer, Modified, Field_Table);
-                  Offset : constant Field_Offset :=  Field_Table (F).Offset;
+                  Offset : constant Field_Offset := Field_Table (F).Offset;
                begin
                   if First_Time then
                      First_Time := False;
index 545d83b480b73400c8945fba948f4b1a9d008e69..aa49bff5318145f31d985bb00b9263d4a358fc94 100644 (file)
@@ -3482,7 +3482,7 @@ package body Ch4 is
            New_Node (N_Loop_Parameter_Specification, Prev_Token_Ptr);
          Set_Defining_Identifier (Loop_Spec, Id);
 
-         Choice :=  First (Discrete_Choices (Assoc_Node));
+         Choice := First (Discrete_Choices (Assoc_Node));
          Assoc_Node :=
            New_Node (N_Iterated_Element_Association, Prev_Token_Ptr);
          Set_Loop_Parameter_Specification (Assoc_Node, Loop_Spec);
index 6ff7046ce4be1af11d30b2cbe93d6b10f6ee7356..ba41209708c87f272364c5b890a2a9c163ca96b1 100644 (file)
@@ -15550,7 +15550,7 @@ package body Sem_Ch13 is
             Add_Unnamed_Subp := Subp;
 
          elsif Op_Name = Name_New_Indexed then
-            New_Indexed_Subp :=  Subp;
+            New_Indexed_Subp := Subp;
 
          elsif Op_Name = Name_Assign_Indexed then
             Assign_Indexed_Subp := Subp;