[PATCH] D25226: [change-namespace] Fix a misplaced case when there is no trailing newline character at the end of the file.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 4 01:50:19 PDT 2016
ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.
Thanks for the fix! :)
> ChangeNamespace.cpp:110-112
> + if (SM.getLocForEndOfFile(LocInfo.first) == End)
> + return End;
> + return End.getLocWithOffset(1);
return (SM.getLocForEndOfFile(LocInfo.first) == End) ? End : End.getLocWithOffset(1);
https://reviews.llvm.org/D25226
More information about the cfe-commits
mailing list