This is an archive of the discontinued LLVM Phabricator instance.

[change-namespace] Fix a misplaced case when there is no trailing newline character at the end of the file.
ClosedPublic

Authored by hokein on Oct 4 2016, 1:11 AM.

Event Timeline

hokein updated this revision to Diff 73420.Oct 4 2016, 1:11 AM
hokein retitled this revision from to [change-namespace] Fix a misplaced case when there is no trailing newline character at the end of the file..
hokein updated this object.
hokein added a reviewer: ioeric.
hokein added a subscriber: cfe-commits.
ioeric accepted this revision.Oct 4 2016, 1:50 AM
ioeric edited edge metadata.

Thanks for the fix! :)

change-namespace/ChangeNamespace.cpp
110–112
return (SM.getLocForEndOfFile(LocInfo.first) == End) ? End : End.getLocWithOffset(1);
This revision is now accepted and ready to land.Oct 4 2016, 1:50 AM
This revision was automatically updated to reflect the committed changes.