[all-commits] [llvm/llvm-project] 591be7: [Format] Work around current vim bugs in clang-for...

Sam McCall via All-commits all-commits at lists.llvm.org
Wed Apr 15 11:11:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 591be7ec500c151d9232366042e21c74e006292c
      https://github.com/llvm/llvm-project/commit/591be7ec500c151d9232366042e21c74e006292c
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-04-15 (Wed, 15 Apr 2020)

  Changed paths:
    M clang/tools/clang-format/clang-format.py

  Log Message:
  -----------
  [Format] Work around current vim bugs in clang-format.py

Summary:
Do line/col to byte conversions on the python side rather than relying on vim.
Its calculations are off when text annotations are present:
- https://github.com/vim/vim/issues/5930
- https://github.com/vim/vim/issues/3718 (fixed, but vim 8.1 is still common)

Reviewers: hokein

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list