diff options
author | Claire Dross <dross@adacore.com> | 2021-04-30 10:24:30 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-07-05 13:09:17 +0000 |
commit | fdb5c200369c8ba56358a145e0c5c6c461ad5a45 (patch) | |
tree | c94c6f9694c20e5ff17438e01d3c598adfe7877b /gcc/gcc.c | |
parent | 902d7076663aff56198b81f8efa356c3e1024e80 (diff) | |
download | gcc-fdb5c200369c8ba56358a145e0c5c6c461ad5a45.zip gcc-fdb5c200369c8ba56358a145e0c5c6c461ad5a45.tar.gz gcc-fdb5c200369c8ba56358a145e0c5c6c461ad5a45.tar.bz2 |
[Ada] Add Reference and Constant_Reference functions to formal containers
gcc/ada/
* libgnat/a-cfdlli.ads, libgnat/a-cfdlli.adb
libgnat/a-cfinve.ads, libgnat/a-cfinve.adb,
libgnat/a-cofove.ads, libgnat/a-cofove.adb,
libgnat/a-coboho.ads, libgnat/a-coboho.adb (Constant_Reference):
Get a read-only access to an element of the container.
(At_End): Ghost functions used to express pledges in the
postcondition of Reference.
(Reference): Get a read-write access to an element of the
container.
* libgnat/a-cfhama.ads, libgnat/a-cfhama.adb,
libgnat/a-cforma.ads, libgnat/a-cforma.adb: The full view of the
Map type is no longer a tagged type, but a wrapper over this
tagged type. This is to avoid issues with dispatching result in
At_End functions.
(Constant_Reference): Get a read-only access to an element of
the container.
(At_End): Ghost functions used to express pledges in the
postcondition of Reference.
(Reference): Get a read-write access to an element of the
container.
* libgnat/a-cfhase.ads, libgnat/a-cfhase.adb,
libgnat/a-cforse.ads, libgnat/a-cforse.adb: The full view of the
Map type is no longer a tagged type, but a wrapper over this
tagged type.
(Constant_Reference): Get a read-only access to an element of
the container.
* libgnat/a-cofuse.ads, libgnat/a-cofuve.ads (Copy_Element):
Expression function used to cause SPARK to make sure
Element_Type is copiable.
* libgnat/a-cofuma.ads (Copy_Key): Expression function used to
cause SPARK to make sure Key_Type is copiable.
(Copy_Element): Expression function used to cause SPARK to make
sure Element_Type is copiable.
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions