styleg-c.ads, [...] (Missing_Overriding): new procedure to implement style check...
authorArnaud Charlet <charlet@gcc.gnu.org>
Wed, 20 Aug 2008 15:43:11 +0000 (17:43 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 20 Aug 2008 15:43:11 +0000 (17:43 +0200)
commit235f4375ba4542ab13ea4d54d731ba599076331f
treedb110bbbc9ab65618b70d615e6c675b9d6248c05
parent54e034613467cfab3e89f23f7a1043910791d35b
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
gcc/ada/ChangeLog
gcc/ada/sem_ch6.adb
gcc/ada/sem_ch8.adb
gcc/ada/style.ads
gcc/ada/styleg-c.adb
gcc/ada/styleg-c.ads
gcc/ada/stylesw.adb
gcc/ada/stylesw.ads