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 202768

Summary: No code navigation from extern function declaration
Product: cnd Reporter: Egor Ushakov <gorrus>
Component: Code ModelAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Egor Ushakov 2011-09-28 09:34:11 UTC
from gdb 7.3.1 source code when opened as standalone files:

mi-getopt.h contains declaration:
extern int mi_getopt (const char *prefix, int argc, char **argv,
		      struct mi_opt *opt, int *optind, char **optarg);

mi-getopt.c contains definition:
int
mi_getopt (const char *prefix,
	   int argc, char **argv,
	   struct mi_opt *opts,
	   int *optind, char **optarg)
{
  char *arg;
  struct mi_opt *opt;
...

Ctrl+click on the definition goes to the header file but Ctrl+click on the declaration in .h file goes nowhere.
In classes view I can see that definition belongs to mi-getopt.c but declaration belongs to another .c file.
Comment 1 nnnnnk 2011-09-28 11:57:33 UTC
Reproducible for standalone files only.