[all-commits] [llvm/llvm-project] 3c0215: Revert "[clang-format][NFC] Clean up fillRanges() ...

Jorge Gorbe Moya via All-commits all-commits at lists.llvm.org
Mon Jun 9 14:44:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c02150f02022292645f6238524f0401a6f5014f
      https://github.com/llvm/llvm-project/commit/3c02150f02022292645f6238524f0401a6f5014f
  Author: Jorge Gorbe Moya <jgorbe at google.com>
  Date:   2025-06-09 (Mon, 09 Jun 2025)

  Changed paths:
    M clang/tools/clang-format/ClangFormat.cpp

  Log Message:
  -----------
  Revert "[clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (#143236)"

This reverts commit 897ccddcc30cacdfe04ddd622986b50ec963eabc. It
introduced a bug when formatting multiple files in one go. When a
shorter file is passed after a longer one, a stale length from the
previous file seems to be used, triggering an "invalid length (...) is
outside the file" error.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list