Skip to content

Use locations inside macros (rather than the macro usage location) for instruction source locations in debug info #160667

@SergejSalnikov

Description

@SergejSalnikov

Look at the following example: https://godbolt.org/z/zTnao79xr

The whole macro invocation was folded to a single line. It means that macros are practically not debuggable.
It would be very handy to preserve/generate the correct line numbers while expanding the macro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"debuginfo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions