perlapi: Show prototypes for all elements #22305
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some functions/macros are grouped together in a single entry where those items are just variants of each other. This makes it is easier for the reader to choose the variant that is best for their current purpose.
Prior to this commit if the return type and parameters to all variants in the group were the same, only the first item's prototype gets displayed. This was to save space. But I have found myself searching in vain for a prototype that was squashed, and it's not a whole lot of space that gets saved. This commit displays the signatures of all elements of a group. It doesn't change that trivial signatures are omitted. These are when just the name itself of the macro or typedef would be displayed, with no adornment. Displaying these actually is confusing, because there is no context for the name.