[Github-comments] [geany/geany] Enable local variable and function parameter tag reporting for C/C++ (PR #3175)
elextr
notifications at github.com
Fri Apr 29 00:02:55 UTC 2022
> It only applies to languages where we use the tm_tag_local_var_t mapping - currently it is C/C++, could also be Python and GDScript, the rest of parsers don't report local variables.
Ok, well I just checked and Python also allows use before "declare" (assignment), eg
```
>>> for i in range(2):
... if i == 1:
... print(j)
... else:
... j = 55;
...
55
```
Statically j is used before its declaring assignment, but not at runtime which is what matters to Python, so clipping later declarations will need to be language specific.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3175#issuecomment-1112761953
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3175/c1112761953 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220428/c25a1523/attachment.htm>
More information about the Github-comments
mailing list