Skip to content

"Function definition for '' not found" message appears when defining a function with a macro #11464

Open
@dortamiguel

Description

@dortamiguel

Environment

  • OS and Version: Ventura 13.6
  • VS Code Version: 1.82.2
  • C/C++ Extension Version: v1.17.5

Bug Summary and Steps to Reproduce

Bug Summary:

If I define a function with a macro vscode can't find the definition and it reports an error

Steps to reproduce:
Type this code

#define define_foo(Type) \
    void foo(const string &key, Type value) {}

define_foo(bool);
define_foo(char);

Expected behavior:
I don't get this error message
image

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions