[all-commits] [llvm/llvm-project] 5e9691: [clang-format] git-clang-format throws an assertio...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Wed Oct 20 01:07:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e969125c6094b909493bcd8360497adcdf8f6f5
      https://github.com/llvm/llvm-project/commit/5e969125c6094b909493bcd8360497adcdf8f6f5
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2021-10-20 (Wed, 20 Oct 2021)

  Changed paths:
    M clang/tools/clang-format/git-clang-format

  Log Message:
  -----------
  [clang-format] git-clang-format throws an assertion when removing files as part of the commit

Following a change {D111273} to allow git-clang-format to see single lines being removed,
we introduced a regression such that if you are removing a whole file it will
assert in clang-format as its given the -lines=0:0  (lines are 1 based)

Reviewed By: HazardyKnusperkeks

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




More information about the All-commits mailing list