Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geanygendoc: Fix crash if trying to document an unknown type #1365

Merged
merged 3 commits into from
Jul 6, 2024

Conversation

b4n
Copy link
Member

@b4n b4n commented Jul 6, 2024

Fix crash when encountering an unknown tag type, which fixes #1362.
Also add support for a couple more tag types Geany can report.

@b4n b4n added this to the 2.1.0 milestone Jul 6, 2024
@b4n b4n mentioned this pull request Jul 6, 2024
b4n added 3 commits July 6, 2024 17:15
Fix crash if the tag to generate documentation for is of an unknown
type.  Also consolidate some code around this to validate parameters
just to be more defensive in case it sill actually happens.

Fixes geany#1362.
No functional changes, it just helps updating the table.
They are both ignored by the default configuration, as include
directives are not usually useful to document, and "other" is not
normally emitted by the C language parser.
@b4n b4n force-pushed the geanygendoc/unknown-type-crash branch from 1f172a5 to 8043a67 Compare July 6, 2024 15:15
@b4n b4n merged commit 3a90710 into geany:master Jul 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeanyGenDoc crash
1 participant