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 - No code navigation from extern function declaration
Summary: No code navigation from extern function declaration
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0.1
Hardware: All All
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 09:34 UTC by Egor Ushakov
Modified: 2014-11-21 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.