geany-plugins icon indicating copy to clipboard operation
geany-plugins copied to clipboard

Fix handling of locals

Open b4n opened this issue 1 year ago • 2 comments

This is a two-parts fix required for usage with 2.0:

8cad88d72c343fd1091b6dab85ecb226c062a9da: Fix a crash when encountering an unknown tag type (e.g. locals) 3af0bf5117a1143b20286f5ee9fb0a2c35916d6b: Add support for locals, and do something useful with them by default.

Without the first one, triggering documentation generation when a local is the "current" symbol crashes the plugin (and thus Geany). Without the second one in addition, it's annoying because locals "catch" the generation request, although in most cases they should be skipped.

Both of these are particularly important with 2.0 because we now generate locals for purpose of improved scope completion, and thus we have a lot of them for parsers supporting it (e.g. the C and C++ one, which is the main default target of the plugin).

b4n avatar Nov 21 '23 20:11 b4n