[all-commits] [llvm/llvm-project] ed06da: [clang-tidy] Preserve line endings in macro-to-enu...

Zeyi Xu via All-commits all-commits at lists.llvm.org
Sun Jun 7 11:52:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed06da7cadc7d2ed2705d5bf43612ce8fc6582ed
      https://github.com/llvm/llvm-project/commit/ed06da7cadc7d2ed2705d5bf43612ce8fc6582ed
  Author: Zeyi Xu <mitchell.xu2 at gmail.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/.gitattributes
    A clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/macro-to-enum/crlf.cpp
    A clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/macro-to-enum/crlf.cpp.expected
    A clang-tools-extra/test/clang-tidy/checkers/modernize/macro-to-enum-crlf.cpp

  Log Message:
  -----------
  [clang-tidy] Preserve line endings in macro-to-enum fixes (#202054)

Use `StringRef::detectEOL()` when inserting enum braces so fix-its do
not mix LF into CRLF source files.

Closes https://github.com/llvm/llvm-project/issues/61593



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