[PATCH] [Rewriter] Fix RemoveText when IncludeInsertsAtBeginOfRange=true

Alex Corrado via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 9 18:10:04 PDT 2015


Hello,

I’m new to Clang, and I’d like to start off by saying that it's been a real treat to work with so far.

I’ve been putting the Rewriter through its paces and found a bug: RemoveText does not use the correct starting offset when IncludeInsertsAtBeginOfRange=true in the RewriteOptions and some text has been inserted at the beginning of the range.

I’ve attached a patch. Apologies if it isn’t in the correct format, as this is my first one.

Thanks again for all your great work!

-Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Rewriter-Fix-RemoveText-when-IncludeInsertsAtBeginOf.patch
Type: application/octet-stream
Size: 2264 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150809/b29f990c/attachment-0001.obj>
-------------- next part --------------




More information about the cfe-commits mailing list