Skip to content

Offset not applied for locations in parseCppΒ #76

@linuswagner

Description

@linuswagner

When calling parseCpp with a location l that has positional information (the part after the URI), the function correctly only parses this part of the code. However, all positions in the source locations in the AST are 0-based and not offset by the offset of l.

This does not make sense, because the AST still refers back to the original file and now points to an incorrect position

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions