]> gcc.gnu.org Git - gcc.git/commit
ada: Allow reuse of Enclosing_Declaration_Or_Statement by GNATprove
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 25 Sep 2020 08:43:27 +0000 (10:43 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:32 +0000 (09:36 +0100)
commit8f077c4d05876bf952c86131e477d21dc5d4492b
treea0a1ff0b0855c48d0e44929b186cd3e4fc452dcf
parentf073f3355643587073ce224563f509332043c381
ada: Allow reuse of Enclosing_Declaration_Or_Statement by GNATprove

Move routine Enclosing_Declaration_Or_Statement from body of Sem_Res to spec
of Sem_Util, so it can be reused. In particular, GNATprove needs this
functionality to climb from an arbitrary subexpression with target_name (@)
to the enclosing assignment statement. Behaviour of the compiler is
unaffected.

gcc/ada/

* sem_res.adb (Enclosing_Declaration_Or_Statement): Moved to
Sem_Util.
* sem_util.ads (Enclosing_Declaration_Or_Statement): Moved from
Sem_Res.
* sem_util.adb (Enclosing_Declaration_Or_Statement): Likewise.
gcc/ada/sem_res.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads
This page took 0.055881 seconds and 5 git commands to generate.