This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232529

Summary: Can't navigate to externed variable declaration
Product: cnd Reporter: ikogan
Component: NavigationAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description ikogan 2013-07-10 17:21:12 UTC
Navigation to externed function works, but for a variable it keeps going to same extern ... line. Would be good to be able to navigate to the place where the variable is originally defined at.
Comment 1 Jiri Prox 2013-07-11 05:42:14 UTC
Can you please provide sample of code where can be demonstrated the requested behavior?

What type of navigation do you use (go to declaration, go to source etc...)?
Comment 2 ikogan 2013-07-11 18:01:58 UTC
Here is an example:

From NandTest.c:
..................................
extern void gvf_KillTasks(void); //!< from ShutdownTask.c
extern TCB_PTR Shutdown_task; //!< from ShutdownTask.c
.......................................................
Somewhere in the same file:
 

gvf_KillTasks(); - navigate to declaration takes me to the body of the function in a different file (ShutdownTask.c).
smx_TaskDelete(&Shutdown_task); - navigate to Shutdown_task decration takes me to the extern TCB_PTR Shutdown_task; //!< from ShutdownTask.c line in the same file (see above). Trying to navigate to declaration from this line just jumps to the beginning of the same line. The variable is declared in a different file (ShutdownTask.c).