microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When a function is referenced via a macro definition, the referencing function cannot find it

meijialun opened this issue · comments

Environment

  • OS and Version: Win10 x64
  • VS Code Version: 1.89.1
  • C/C++ Extension Version: v1.20.5
  • If using SSH remote, specify OS of remote machine: No

Bug Summary and Steps to Reproduce

Bug Summary:
When a function is referenced via a macro definition, the referencing function cannot find it

Steps to reproduce:

  1. Define a function
  2. Define a macro definition, pointing to the function
  3. Call the function through the macro definition
  4. Find all references to the function

Expected behavior:
Expecting to find that the function is referenced by a macro definition or an objective function, but not actually finding anything
Snipaste_2024-05-17_16-02-10

Configuration and Logs

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [
                "__TASKING__",
                "BRS_COMP_TASKING"
            ],
            "windowsSdkVersion": "10.0.19041.0",
            "compilerPath": "",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

No response