[clang-rename] Use checktime when reloading vim buffer after applying clang-rename
authorKirill Bobyrev <omtcyfz@gmail.com>
Mon, 26 Sep 2016 07:26:32 +0000 (07:26 +0000)
committerKirill Bobyrev <omtcyfz@gmail.com>
Mon, 26 Sep 2016 07:26:32 +0000 (07:26 +0000)
commitbd80bbd3c36cc0bddf339809b85a6fa93b72cbc6
tree9e7aebc04515278ef0ccc054ad29d15808475ce4
parent9abb2fa5bb66785379c5b4cb46426cb61ee01c93
[clang-rename] Use checktime when reloading vim buffer after applying clang-rename

After applying `clang-rename` to a vim buffer (using `clang-rename.py` as part
of the vim integration) the buffer gets reloaded using `bufdo`. This solution is
suboptimal, since syntax highlighting is turned off for performance reasons and
never turned on, after all changes to the source file have been applied.

A better solution to this is using `checktime`. It is exactly designed for this
kind of task and doesn't have the syntax highlighting issue.

Patch by Kai Wolf!

Reviewers: omtcyfz

Differential Revision: https://reviews.llvm.org/D24791

llvm-svn: 282388
clang-tools-extra/clang-rename/tool/clang-rename.py