diff options
| author | Manuel Klimek <klimek@google.com> | 2017-02-23 16:02:53 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2017-02-23 16:02:53 +0000 |
| commit | c38cd69256e1bd35dc98778905b5a369233bef71 (patch) | |
| tree | 74c0c20f3d0268491f3b8e4e0664f8c385574cf0 /llvm/lib/Support/PluginLoader.cpp | |
| parent | 2c7169d00c5a7a0f8be5028061e418f3e1193f57 (diff) | |
| download | bcm5719-llvm-c38cd69256e1bd35dc98778905b5a369233bef71.tar.gz bcm5719-llvm-c38cd69256e1bd35dc98778905b5a369233bef71.zip | |
Make clang-include-fixer--insert-line work when the difference is on an empty line
`clang-include-fixer--insert-line` has an off-by-one error because it
uses `(goto-char (point-min)) (forward-char chars)`, which is (goto-char
(1+ chars))`. Because of this, when the first difference was on an empty
line (i.e. an include was appended to the block of includes), the
pointer in the `to` buffer would be on the next line.
Also wrapped calls inside another process sentinel inside `with-local-quit`.
Patch by Torsten Marek.
Differential Revision: https://reviews.llvm.org/D30292
llvm-svn: 295988
Diffstat (limited to 'llvm/lib/Support/PluginLoader.cpp')
0 files changed, 0 insertions, 0 deletions

