Get mapped offset for rewritten text

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Get mapped offset for rewritten text

Alex Denisov via cfe-dev

I need to get mapped offset for rewritten text to use it in
Rewriter::RemoveText(SourceRange range, RewriteOptions
because that method calculates only mapped offset for end of range (not
begin of range). Rewriter also has functions getRangeSize(...) and
which can calculate mapped offsets. Maybe Rewriter needs
getMappedRange(...) function?
How can I get mapped offset for begin of range?

I found patch
with public Rewriter::getMappedOffset(...), but it isn't in master tree
of clang.

cfe-dev mailing list
[hidden email]