]> gcc.gnu.org Git - gcc.git/commit
aspects.adb, [...] (Aspect_Id): New GNAT aspect Aspect_Contract_Case.
authorYannick Moy <moy@adacore.com>
Thu, 15 Mar 2012 08:48:36 +0000 (08:48 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 15 Mar 2012 08:48:36 +0000 (09:48 +0100)
commit90e8523311e9616c99a9fc9cfa2454f753eb9f13
tree0821136e1cc465c7f9676ef3b181713492d1cf50
parent51a1aacf86538c0966fb3c34f0bf26c24515eb8f
aspects.adb, [...] (Aspect_Id): New GNAT aspect Aspect_Contract_Case.

2012-03-15  Yannick Moy  <moy@adacore.com>

* aspects.adb, aspects.ads (Aspect_Id): New GNAT aspect
Aspect_Contract_Case.
* gnat_rm.texi Document the new pragma/aspect
Contract_Case. Correct the documentation of the existing
pragma/aspect Test_Case with the new semantics.
* sem_attr.adb (Analyze_Attribute): Allow use of 'Result in the
Ensures component of a Contract_Case pragma.
* sem_ch13.adb (Analyze_Aspect_Specifications): Check new aspect
and translate it into a pragma.
(Check_Aspect_At_Freeze_Point): Take into account the new aspect.
* sem_ch3.adb, sinfo.adb, sinfo.ads Renaming of TC (for test case)
into CTC (for contract and test case).
* sem_ch6.adb (Process_PPCs): Generate Check pragmas from
Contract_Case pragmas, similarly to what is done already for
postconditions.
* sem_prag.adb, sem_prag.ads (Check_Contract_Or_Test_Case):
Renaming of Check_Test_Case.
(Analyze_Pragma, Sig_Flags): Take into account the new pragma.
* sem_util.adb, sem_util.ads Renaming to take into account the
new pragma, so that functions which applied only to Test_Case
now apply to both Test_Case and Contract_Case.
* par-prag.adb, sem_warn.adb, snames.ads-tmpl Take into account
the new pragma.

From-SVN: r185415
17 files changed:
gcc/ada/ChangeLog
gcc/ada/aspects.adb
gcc/ada/aspects.ads
gcc/ada/gnat_rm.texi
gcc/ada/par-prag.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch6.adb
gcc/ada/sem_prag.adb
gcc/ada/sem_prag.ads
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads
gcc/ada/sem_warn.adb
gcc/ada/sinfo.adb
gcc/ada/sinfo.ads
gcc/ada/snames.ads-tmpl
This page took 0.060383 seconds and 5 git commands to generate.