[clangd] Improve the output of rename tests where there are failures.
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 6 Nov 2019 14:08:59 +0000 (15:08 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 6 Nov 2019 14:34:38 +0000 (15:34 +0100)
commitb0eed2a5cfe13a7cd13e2446b7dfe2d7b588d416
treed92e444025819e2a4056ace6afa8c45bba5a7d62
parent8e34dd941cb304c785ef623633ad663b59cfced0
[clangd] Improve the output of rename tests where there are failures.

Summary:
Previously, we match ranges, which is hard to spot the difference.
Now, we diff the code after rename against the expected result, it
produces much nicer output.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69890
clang-tools-extra/clangd/unittests/RenameTests.cpp