[clang-rename] Fix non-functional offset check.
Adding something to a SourceLocation will only produce an invalid SourceLocation in edge cases (overflow or adding 0 to an invalid one). Check that the offset is inside the file instead and add a test case to verify that the error message works. llvm-svn: 287758
Loading
Please register or sign in to comment