Hi,
I am trying to access the type information stored in the tags database
that is used for code completion, and I am failing miserably.
I am trying to create a context help plugin: when the plugin is
correctly configured, hitting "F1" when the cursor is over an
expression should bring up the help topic for the type under
the cursor. To do that I need to retrieve the type of the
expression under the cursor; for example
wxString foo;
- I need to know that "foo" has type wxString
window->GetBackgroundColour().GetAsString().length()
- I need to retrieve the type of "window"
- when the cursor is over "length" I'd like to know
that the left-hand side has type wxString
I experimented with Language::ProcessExpression and
TagsManager::AutoCompleteCandidates but I could not make them
work even in relatively simple test cases, like the two above.
Could somebody point me in the right direction?
Thanks!
Mattia
P.S.: the examples above are C++/wxWidgets, but I'd be happy even
if the solution worked for C code only
|