diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-08-20 17:43:11 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-08-20 17:43:11 +0200 |
commit | 235f4375ba4542ab13ea4d54d731ba599076331f (patch) | |
tree | db110bbbc9ab65618b70d615e6c675b9d6248c05 /gcc/ada/styleg-c.ads | |
parent | 54e034613467cfab3e89f23f7a1043910791d35b (diff) | |
download | gcc-235f4375ba4542ab13ea4d54d731ba599076331f.zip gcc-235f4375ba4542ab13ea4d54d731ba599076331f.tar.gz gcc-235f4375ba4542ab13ea4d54d731ba599076331f.tar.bz2 |
styleg-c.ads, [...] (Missing_Overriding): new procedure to implement style check that overriding operations are...
2008-08-20 Ed Schonberg <schonberg@adacore.com>
* styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
implement style check that overriding operations are explicitly marked
at such.
* style.ads (Missing_Overriding): new procedure that provides interface
to previous one.
* stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
that the declaration or body of overriding operations carries an
explicit overriding indicator.
* sem_ch8.adb
(Analyze_Subprogram_Renaming): if operation is overriding, check whether
explicit indicator should be present.
* sem_ch6.adb (Verify_Overriding_Indicator,
Check_Overriding_Indicator): If operation is overriding, check whether
declaration and/or body of subprogram should be present
From-SVN: r139316
Diffstat (limited to 'gcc/ada/styleg-c.ads')
-rw-r--r-- | gcc/ada/styleg-c.ads | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/styleg-c.ads b/gcc/ada/styleg-c.ads index 082f90e..b3fc1f6 100644 --- a/gcc/ada/styleg-c.ads +++ b/gcc/ada/styleg-c.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -53,6 +53,10 @@ package Styleg.C is -- spelling is to be checked against the Chars spelling in identifier node -- Def (which may be either an N_Identifier, or N_Defining_Identifier node) + procedure Missing_Overriding (N : Node_Id; E : Entity_Id); + -- Called where N is the declaration or body of an overriding operation, + -- and the node does not have an overriding_indicator. + procedure Subprogram_Not_In_Alpha_Order (Name : Node_Id); -- Called if Name is the name of a subprogram body in a package body -- that is not in alphabetical order. |