Skip to content

Bug ocide: browse to definition misses context #13

@GitMensch

Description

@GitMensch

Within LADSoft/OrangeC#168 there are many sources in the project "libcob" which have variables defined in the function header. The same variable name is also defined in the file cobc/cobc.h which even belongs to a completely other project "cobc" - and this is used as current target for browse definition.

Example: libcob/fileio.c, cob_fd_file_open():

static int
cob_fd_file_open (cob_file *f, char *filename, const int mode, const int sharing)    // line 1252
{
        /// some stuff here

	if (access (filename, F_OK) && errno == ENOENT) {    // line 1272

browse to definition on filename in line 1272 should obviously jump to line 1252, but it jumps to the definition of the struct filename in cobc/cobc.h.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions