diff options
| author | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-09-26 07:26:32 +0000 |
|---|---|---|
| committer | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-09-26 07:26:32 +0000 |
| commit | bd80bbd3c36cc0bddf339809b85a6fa93b72cbc6 (patch) | |
| tree | 9e7aebc04515278ef0ccc054ad29d15808475ce4 | |
| parent | 9abb2fa5bb66785379c5b4cb46426cb61ee01c93 (diff) | |
| download | bcm5719-llvm-bd80bbd3c36cc0bddf339809b85a6fa93b72cbc6.tar.gz bcm5719-llvm-bd80bbd3c36cc0bddf339809b85a6fa93b72cbc6.zip | |
[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
| -rw-r--r-- | clang-tools-extra/clang-rename/tool/clang-rename.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-rename/tool/clang-rename.py b/clang-tools-extra/clang-rename/tool/clang-rename.py index 20530c3db1f..3cc6644ff8f 100644 --- a/clang-tools-extra/clang-rename/tool/clang-rename.py +++ b/clang-tools-extra/clang-rename/tool/clang-rename.py @@ -54,7 +54,7 @@ def main(): print stderr # Reload all buffers in Vim. - vim.command("bufdo edit") + vim.command("checktime") if __name__ == '__main__': |

