aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/style.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2007-04-06 11:25:29 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-04-06 11:25:29 +0200
commita9a5b8acd29597692a4df9323f790da0d7506c76 (patch)
tree5452d8d7f7de1a366e554e6d5ccd84c49ad180c9 /gcc/ada/style.ads
parent2f41ec1a8fe5eab706ed223ab468de003d1995f0 (diff)
downloadgcc-a9a5b8acd29597692a4df9323f790da0d7506c76.zip
gcc-a9a5b8acd29597692a4df9323f790da0d7506c76.tar.gz
gcc-a9a5b8acd29597692a4df9323f790da0d7506c76.tar.bz2
sem_ch13.ads, [...] (Adjust_Record_For_Reverse_Bit_Order): Use First/Next_Component_Or_Discriminant
2007-04-06 Robert Dewar <dewar@adacore.com> * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Use First/Next_Component_Or_Discriminant (Analyze_Record_Representation_Clause): Use First/Next_Component_Or_Discriminant (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant (Analyze_Attribute_Definition_Clause, case Value_Size): Reject definition if type is unconstrained. (Adjust_Record_For_Reverse_Bit_Order): New procedure (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type. (Adjust_Record_For_Reverse_Bit_Order): New procedure * repinfo.adb (List_Record_Info): Use First/ Next_Component_Or_Discriminant. * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index): New procedure. * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch Include -gnatyA in default switches * opt.ads: (Warn_On_Non_Local_Exception): New flag (Warn_On_Reverse_Bit_Order): New flag (Extensions_Allowed): Update the documentation. (Warn_On_Questionable_Missing_Parens): Now on by default * usage.adb: Add documentation of -gnatw.x/X switches Document new -gnatyA style switch -gnatq warnings are on by default From-SVN: r123590
Diffstat (limited to 'gcc/ada/style.ads')
-rw-r--r--gcc/ada/style.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/style.ads b/gcc/ada/style.ads
index 1708573..4dbc55c 100644
--- a/gcc/ada/style.ads
+++ b/gcc/ada/style.ads
@@ -65,6 +65,16 @@ package Style is
renames Style_Inst.Check_Apostrophe;
-- Called after scanning an apostrophe to check spacing
+ procedure Check_Array_Attribute_Index
+ (N : Node_Id;
+ E1 : Node_Id;
+ D : Int)
+ renames Style_C_Inst.Check_Array_Attribute_Index;
+ -- Called for an array attribute specifying an index number. N is the
+ -- node for the attribute, and E1 is the index expression (Empty if none
+ -- present). If E1 is present, it is known to be a static integer. D is
+ -- the number of dimensions of the array.
+
procedure Check_Arrow
renames Style_Inst.Check_Arrow;
-- Called after scanning out an arrow to check spacing