Skip to content

C语言中函数声明和定义混淆的bug #83

@SURE945

Description

@SURE945

描述Bug
在针对C语言的情况下,鼠标点到函数的定义位置,outline-map会自动跳转到函数的声明位置

复现

#include <stdlib.h>

static int test();

static int stub1();

static int stub2();

static int stub3();

static int test()
{
  return 0;
}

static int stub1()
{
  return 0;
}

static int stub2()
{
  return 0;
}

static int stub3()
{
  return 0;
}

int main()
{
    printf("hello world!\n");
    return 0;
}

期望表现
选中函数的定义,它就停在函数的定义位置

截屏/录屏

信息

  • VSCode Version* :
Version: 1.96.2 (user setup)
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Date: 2024-12-19T10:22:47.216Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100
  • Outline-map Version* : 1.4.1
  • 相关文件 : [eg: github.com/......]
    -相关插件: [eg: vue.volar]
  • 扩展设置:

附加信息

main.c.-.cmaketest.-.Visual.Studio.Code.2025-01-02.18-39-54.mp4

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