+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
------------------------------------------------------
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
----------------------------
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;
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
Name_Loc.Source.Unit.Name,
Name_Loc.Source.Unit);
end if;
-
end if;
end if;
end if;
exit when Last = 0;
if Name (1 .. Last) /= "."
- and then Name (1 .. Last) /= ".."
+ and then
+ Name (1 .. Last) /= ".."
then
declare
Path_Name : constant String :=
end if;
if not Has_Error then
+
-- Links have been resolved if necessary, and Path_Name
-- always ends with a directory separator.
loop
Read (Dir, Name, Last);
-
exit when Last = 0;
-- In fast project loading mode (without -eL), the user
-- 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