ada: Fix comments for recently added SPARK aspects
commit54d8dbebf1b1b7f2ff5dcaa50a7b17c116ddb60f
authorPiotr Trojanek <trojanek@adacore.com>
Sat, 4 Mar 2023 17:07:33 +0000 (4 18:07 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 25 May 2023 07:44:17 +0000 (25 09:44 +0200)
tree0cb36a813510f27f7fe40c444ba8f21a9449523c
parent2288b12cfe60f7bf65f382951449b070f9067da7
ada: Fix comments for recently added SPARK aspects

Implementation of contract Subprogram_Variant and Exceptional_Cases was
based on the existing code for Contract_Cases, i.e. on the existing
occurrences of Aspect_Contract_Cases, Name_Contract_Cases and
Pragma_Contract_Cases. However, occurrences of "Contract_Cases" itself
in the comments were not updated.

gcc/ada/

* contracts.adb
(Add_Pre_Post_Condition): Mention new aspects in the comment.
* contracts.ads
(Add_Contract_Item): Likewise.
(Analyze_Subprogram_Body_Stub_Contract): Likewise.
* sem_prag.adb
(Contract_Freeze_Error): Likewise.
(Ensure_Aggregate_Form): Likewise.
* sem_prag.ads
(Find_Related_Declaration_Or_Body): Likewise.
* sinfo.ads
(Is_Generic_Contract_Pragma): Likewise.
gcc/ada/contracts.adb
gcc/ada/contracts.ads
gcc/ada/sem_prag.adb
gcc/ada/sem_prag.ads
gcc/ada/sinfo.ads