Skip to content

Provide a debugger-friendly way to get an Expr's location in a file #83543

@tbaederr

Description

@tbaederr

From a discussion on Discord: it would be beneficial for debugging if a standalone Expr's dump() would also print where that expression can be found in a source file. Or at least some way of getting this information in an easy way would be beneficail. Even if that way is only accessible in debug builds.

Using dump() on an expression in LLDB looks like this today;

Screenshot from 2024-02-29 07-46-16

But from this information it is very hard to figure out where this expression can be found in the source file.

This is useful for writing tests where clang needs to process the expression in source form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"enhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions