]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sem_attr.adb, [...]: Minor reformatting.
authorRobert Dewar <dewar@adacore.com>
Tue, 6 Sep 2011 11:59:12 +0000 (11:59 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 6 Sep 2011 11:59:12 +0000 (13:59 +0200)
2011-09-06  Robert Dewar  <dewar@adacore.com>

* sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.

From-SVN: r178589

gcc/ada/ChangeLog
gcc/ada/exp_aggr.adb
gcc/ada/prj-nmsc.adb
gcc/ada/sem_attr.adb

index da553f82c2ab8d9d3eb74516f4a666b30b1e318b..9451718d6b0a0007c88a340dc500e35fa0bd03c5 100644 (file)
@@ -1,3 +1,7 @@
+2011-09-06  Robert Dewar  <dewar@adacore.com>
+
+       * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
+
 2011-09-06  Ed Schonberg  <schonberg@adacore.com>
 
        * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
index f79353a4ab57e80873417db91220642e90f7a616..2dd052eb8f5bbdc420427ea32e2c41966c37fa80 100644 (file)
@@ -107,9 +107,9 @@ package body Exp_Aggr is
    ------------------------------------------------------
 
    function Build_Record_Aggr_Code
-     (N                             : Node_Id;
-      Typ                           : Entity_Id;
-      Lhs                           : Node_Id) return List_Id;
+     (N   : Node_Id;
+      Typ : Entity_Id;
+      Lhs : Node_Id) return List_Id;
    --  N is an N_Aggregate or an N_Extension_Aggregate. Typ is the type of the
    --  aggregate. Target is an expression containing the location on which the
    --  component by component assignments will take place. Returns the list of
@@ -1729,9 +1729,9 @@ package body Exp_Aggr is
    ----------------------------
 
    function Build_Record_Aggr_Code
-     (N                             : Node_Id;
-      Typ                           : Entity_Id;
-      Lhs                           : Node_Id) return List_Id
+     (N   : Node_Id;
+      Typ : Entity_Id;
+      Lhs : Node_Id) return List_Id
    is
       Loc     : constant Source_Ptr := Sloc (N);
       L       : constant List_Id    := New_List;
@@ -2331,10 +2331,10 @@ package body Exp_Aggr is
                Generate_Finalization_Actions;
 
                Append_List_To (L,
-                  Build_Record_Aggr_Code (
-                    N   => Unqualify (Ancestor),
-                    Typ => Etype (Unqualify (Ancestor)),
-                    Lhs => Target));
+                  Build_Record_Aggr_Code
+                    (N   => Unqualify (Ancestor),
+                     Typ => Etype (Unqualify (Ancestor)),
+                     Lhs => Target));
 
             --  If the ancestor part is an expression "E", we generate
 
index 8c202a3954676705b244785a3cde34bf819891f4..0ff3eda1732af619c10af8b7afb68d5b03970bad 100644 (file)
@@ -6913,7 +6913,6 @@ package body Prj.Nmsc is
                         Name_Loc.Source.Unit.Name,
                         Name_Loc.Source.Unit);
                   end if;
-
                end if;
             end if;
          end if;
@@ -7103,7 +7102,8 @@ package body Prj.Nmsc is
             exit when Last = 0;
 
             if Name (1 .. Last) /= "."
-              and then Name (1 .. Last) /= ".."
+                 and then
+               Name (1 .. Last) /= ".."
             then
                declare
                   Path_Name : constant String :=
@@ -7256,6 +7256,7 @@ package body Prj.Nmsc is
          end if;
 
          if not Has_Error then
+
             --  Links have been resolved if necessary, and Path_Name
             --  always ends with a directory separator.
 
@@ -7368,7 +7369,6 @@ package body Prj.Nmsc is
 
                   loop
                      Read (Dir, Name, Last);
-
                      exit when Last = 0;
 
                      --  In fast project loading mode (without -eL), the user
index 9b33acddef3435aa7b2fa87166b75a49db083dc5..eca98360cb6c2dafcb1942ea400cee624bd1b4df 100644 (file)
@@ -3024,8 +3024,10 @@ package body Sem_Attr is
          --  Attribute Descriptor_Size is relevant only in the context of an
          --  unconstrained array type.
 
+         --  Shouldn't it just return zero for types other than arrays or
+         --  constrained arrays ???
+
          if Is_Entity_Name (P)
-           and then Is_Type (Entity (P))
            and then Is_Array_Type (Entity (P))
            and then not Is_Constrained (Entity (P))
          then