[all-commits] [llvm/llvm-project] 615f83: [clang-format] Fix an assertion failure on -lines=0:n

Owen via All-commits all-commits at lists.llvm.org
Fri Jul 8 23:41:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 615f838f7380e6a4f3df8e16f04dea3c8eed656c
      https://github.com/llvm/llvm-project/commit/615f838f7380e6a4f3df8e16f04dea3c8eed656c
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M clang/test/Format/line-ranges.cpp
    M clang/tools/clang-format/ClangFormat.cpp

  Log Message:
  -----------
  [clang-format] Fix an assertion failure on -lines=0:n

Also fixed the error message for start line > end line and added test cases.

Fixes #56438.

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




More information about the All-commits mailing list