]> gcc.gnu.org Git - gcc.git/commit
ada: Refactor repeated code for querying Boolean-valued aspects
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 26 Jan 2024 11:14:48 +0000 (12:14 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 13 May 2024 08:03:31 +0000 (10:03 +0200)
commit7f1289651145ed5590c883e9a531e3bcc11b1130
treea505ad14987af75e51ea7912647733af61979af9
parent65c0029fd969b30794ee0778ddb08e60ee45d770
ada: Refactor repeated code for querying Boolean-valued aspects

Code cleanup following a fix for aspect Exclusive_Functions; semantics
is unaffected.

gcc/ada/

* exp_ch9.adb (Build_Protected_Subprogram_Body,
Build_Protected_Subprogram_Call_Cleanup): Reuse refactored
routine.
* sem_util.adb
(Has_Enabled_Aspect): Refactored repeated code.
(Is_Static_Function): Reuse refactored routine.
* sem_util.ads (Has_Enabled_Aspect):
New query routine refactored from repeated code.
gcc/ada/exp_ch9.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads
This page took 0.067651 seconds and 6 git commands to generate.