[all-commits] [llvm/llvm-project] faca42: [clang-format] Correctly handle backward compatibi...

owenca via All-commits all-commits at lists.llvm.org
Mon Oct 20 02:53:25 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: faca424bc5f7cafa47b2e6b6547df843370a4f3f
      https://github.com/llvm/llvm-project/commit/faca424bc5f7cafa47b2e6b6547df843370a4f3f
  Author: owenca <owenpiano at gmail.com>
  Date:   2025-10-20 (Mon, 20 Oct 2025)

  Changed paths:
    M clang/lib/Format/Format.cpp
    M clang/unittests/Format/ConfigParseTest.cpp

  Log Message:
  -----------
  [clang-format] Correctly handle backward compatibility of C headers (#159908)

This in effect reverts 05fb8408de23c3ccb6125b6886742177755bd757 and
7e1a88b9d1431e263258e3ff0f729c1fdce342d3, the latter of which
erroneously changed the behavior of formatting `ObjC` header files when
both the default and `ObjC` styles were absent. Now the previous
behavior of treating that as an error is restored.

Fixes #158704

(cherry picked from commit d7921de8027eec19a9d272bf445944973e6758b1)


  Commit: 7e153f5372edb8f53b8576932cf5969187bf0484
      https://github.com/llvm/llvm-project/commit/7e153f5372edb8f53b8576932cf5969187bf0484
  Author: owenca <owenpiano at gmail.com>
  Date:   2025-10-20 (Mon, 20 Oct 2025)

  Changed paths:
    M clang/lib/Format/Format.cpp
    M clang/unittests/Format/ConfigParseTest.cpp

  Log Message:
  -----------
  [clang-format] Fix an assertion failure on comment-only config files (#163111)

(cherry picked from commit 059f2df74898ff7f394dc8e60f746323499ae32b)


Compare: https://github.com/llvm/llvm-project/compare/c5a3aa8934b0...7e153f5372ed

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