Skip to content

IntelliSense-based Go to Declaration failed in this case #2761

@lh123

Description

@lh123

Originally posted by @lh123 in #2743 (comment)

In 0.20.1. I thinks this problem still exits.

1. Step to reproduce:

  1. Add #include <list>.
  2. A function named insert only defined.

2. Code:

#include <list>//Need include list to reproduce

void insert(int a) {//Need function name is 'insert'

}

int main() {
    insert(0);//Go to Declaration At here.
}
#include <list>

void otherName(int a) {

}

int main() {
    otherName(0); //Go to Declaration is correct.
}

3. Screenshort:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fix

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions