[Github-comments] [geany/geany] Pascal parser: ensure TagEntryInfo is always initialized (PR #2987)

Enrico Tröger notifications at xxxxx
Sat Nov 6 09:44:06 UTC 2021


This fixes crashes when using incomplete "type" declarations.

Fixes #2358, fixes #2982 and fixes #2428.

The `initTagEntry()` call is necessary to initialize the `TagEntryInfo` object. The `KIND_GHOST_INDEX` argument is taken from the uctags Pascal parser.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/2987

-- Commit Summary --

  * <a href="https://github.com/geany/geany/pull/2987/commits/4d0874e184fb8093ffd8d39acb54902cc3497a5a">Pascal parser: ensure TagEntryInfo is always initialized</a>

-- File Changes --

    M ctags/parsers/geany_pascal.c (2)
    M tests/ctags/Makefile.am (1)
    A tests/ctags/issue2358.pas (20)
    A tests/ctags/issue2358.pas.tags (3)

-- Patch Links --

https://github.com/geany/geany/pull/2987.patch
https://github.com/geany/geany/pull/2987.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2987
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211106/7f9cc0a8/attachment.htm>


More information about the Github-comments mailing list