GNOME Bugzilla – Bug 395704
add a C++ language analyzing infrastructure
Last modified: 2020-03-10 11:53:14 UTC
This would be useful to add features such as "right click on a function call and go to function definition". This task is hard and long, so a further breakdown in smaller tasks will be necessary.
As Dodji mentioned on IRC, there's a new C/C++ frontend for LLVM called clang which might be investigated to see if we could make use of it for this feature.
I have started to write such an infrastructure. It can be found at http://svn.gnome.org/viewvc/nemiver/trunk/src/langs. For the time behing, it features a simple c++ tokenizer and a parser for variable declarations. Both are very simple. For instance, they don't support the preprocessor for now. The parser is being used to parse the result of "info variable" as returned by gdb. That result is used by nemiver to display the list of global variables of the inferior. More to come on that front.
Closing all open Nemiver tasks as this project does not seem to be maintained anymore. Please see https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/235#note_732192 for further information. Thanks!