clair icon indicating copy to clipboard operation
clair copied to clipboard

Offset not applied for locations in parseCpp

Open linuswagner opened this issue 2 years ago • 1 comments

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

linuswagner avatar Dec 29 '23 14:12 linuswagner

Nice catch!

jurgenvinju avatar Dec 29 '23 18:12 jurgenvinju