Skip to content

Capture inline-return-type function definitions in the doxygroup scan#64

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/doxygroup-inline-return-type
Jul 17, 2026
Merged

Capture inline-return-type function definitions in the doxygroup scan#64
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/doxygroup-inline-return-type

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

doxygroup._name_to_group maps each @ingroup tag to the function it labels by
scanning forward to the next definition. Its regex matches the return type only
on its own line, so an inline-return-type definition (bool pcpatch_eq(...))
slips through and the tag binds to the following own-line definition instead.

This captures the signature head up to the first ( and takes the last
identifier as the function name, which handles both the own-line and inline
forms. On the MEOS-C sources it recovers 24 functions that lack a group (the
terse pcpatch / pcpoint / tpcbox comparison and accessor one-liners) and
fixes two mis-attributions: left_tpcbox_tpcbox belongs to its own
meos_pointcloud_box_pos, not meos_pointcloud_box_comp; and pcpoint_as_pcpt
is an untagged internal helper, not a meos_pointcloud_comp member.

A new test covers the inline case and the mis-attribution it prevents.

`doxygroup._name_to_group` maps each `@ingroup` tag to the function it labels
by scanning forward to the next definition. The regex only matched the return
type on its own line, so an inline-return-type definition (`bool pcpatch_eq(
...)`) slipped through and the tag mis-bound to the following own-line
definition.

Capture the signature head up to the first `(` and take the last identifier as
the function name, which handles both the own-line and inline forms. On the
MEOS-C sources this recovers 24 functions that were missing a group (the terse
pcpatch, pcpoint, and tpcbox comparison and accessor one-liners) and corrects
two that were mis-attributed (`left_tpcbox_tpcbox`, `pcpoint_as_pcpt`) because
the scan previously skipped their inline neighbours.

Add a test covering the inline case and the mis-attribution it prevents.
@estebanzimanyi
estebanzimanyi merged commit 89d76c0 into MobilityDB:master Jul 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant