rjmccall added a comment. Hmm. No, I think the original code is correct here — RangeEnd is a token range, and those are generally inclusive rather than exclusive. The fix-it needs to be inserting at the end of the token. http://reviews.llvm.org/D20844