Skip to content

Simplify extracting argument names from C doc comments#244

Merged
avalentino merged 1 commit intoliberfa:mainfrom
eerovaher:better-argument-detection
May 7, 2026
Merged

Simplify extracting argument names from C doc comments#244
avalentino merged 1 commit intoliberfa:mainfrom
eerovaher:better-argument-detection

Conversation

@eerovaher
Copy link
Copy Markdown
Contributor

On current main when FunctionDoc._get_arg_doc_list() extracts arguments from C doc comments it also extracts struct fields, which then have to be removed after the fact. This PR extracts arguments with a regex that avoids extracting struct fields to begin with. Turns out that the ArgumentDoc class is not needed at all anymore.

Previously when `FunctionDoc._get_arg_doc_list()` extracted arguments
from C doc comments it also extracted struct fields, which then had to
be removed after the fact. Using a better regex avoids extracting struct
fields to begin with. Turns out that the `ArgumentDoc` class is not
needed at all anymore.
@avalentino avalentino merged commit a42cc3a into liberfa:main May 7, 2026
28 checks passed
@eerovaher eerovaher deleted the better-argument-detection branch May 7, 2026 18:54
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.

2 participants