Get mapped offset for rewritten text

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

Get mapped offset for rewritten text

Tom Stellard via cfe-dev
Hello,

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

I found patch
(http://lists.llvm.org/pipermail/cfe-dev/2010-November/012120.html)
with public Rewriter::getMappedOffset(...), but it isn't in master tree
of clang.

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...