This is far from perfect and contains a lot of guessing. It showed good results based on our tests cases, fixing several issues and not introducing any more issues (admittedly, after working around a subtle one regarding D static ifs).
Closes #845. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/889
-- Commit Summary --
* C, C++, C#, D: Improve return type and var type recognition
-- File Changes --
M tagmanager/ctags/c.c (70) M tests/ctags/Makefile.am (1) M tests/ctags/bit_field.c.tags (8) M tests/ctags/bug1799340.cpp.tags (6) M tests/ctags/bug1907083.cpp.tags (8) M tests/ctags/bug1924919.cpp.tags (4) M tests/ctags/c-digraphs.c.tags (4) M tests/ctags/c-trigraphs.c.tags (4) M tests/ctags/indexer.cs.tags (2) M tests/ctags/interface_indexers.cs.tags (2) M tests/ctags/keyword_const.cs.tags (4) M tests/ctags/keyword_virtual.cs.tags (2) M tests/ctags/keyword_volatile.cs.tags (2) M tests/ctags/simple.d.tags (2) A tests/ctags/var-and-return-type.cpp (40) A tests/ctags/var-and-return-type.cpp.tags (20)
-- Patch Links --
https://github.com/geany/geany/pull/889.patch https://github.com/geany/geany/pull/889.diff
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/889