Ada: Adds suffix to names of procedures for accessibility checks
This commit renames procedures in `accessibility.adb` to clarify their purpose in accessibility checks for returns.
This commit clarifies the purpose of several procedures related to accessibility checks by adding the suffix _Return to their names. This renaming improves code readability and maintainability, especially for procedures specifically designed for accessibility checks of return values.
In Details
The accessibility.adb implements checks related to accessibility levels in Ada. The procedures being renamed perform specific checks on the return values of subprograms. The change impacts the call sites within the accessibility.adb file itself. No interaction with other subsystems is apparent.
For Context
Accessibility checks in Ada ensure that data isn't accessed in ways that violate its intended lifetime or visibility. This commit improves the clarity of the Ada compiler's code by renaming several internal procedures within the accessibility check module. These procedures are now more clearly identified as being specific to checking the accessibility of function return values, making the code easier to understand and maintain.