You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking into using the IDxcIntelliSense interface to collect information about used global variables and structures,however after spending quite a bit of time on this, it seems harder than I thought.
Given a IDxcCursor pointing to some variable declaration, is there a way to find if this is actually used in the sourcecode? Looking into the text file generated by "ast-dump" cmdline option, I can see that it's correctly marking such declarations as "used", but fail to see how this is done.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am looking into using the IDxcIntelliSense interface to collect information about used global variables and structures,however after spending quite a bit of time on this, it seems harder than I thought.
Given a IDxcCursor pointing to some variable declaration, is there a way to find if this is actually used in the sourcecode? Looking into the text file generated by "ast-dump" cmdline option, I can see that it's correctly marking such declarations as "used", but fail to see how this is done.
Take the following minimal example:
-ast-dump correctly only marks "g_param" as used, however I can't find a way to detect this using the API.
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions