[clang-tools-extra] [clang-tidy] Preserve line endings in macro-to-enum fixes (PR #202054)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 7 17:12:51 PDT 2026
dyung wrote:
Hi @zeyi2, your change is causing test failures on MacOS bots, can you take a look?
https://lab.llvm.org/buildbot/#/builders/190/builds/43662
https://lab.llvm.org/buildbot/#/builders/23/builds/20243
```
******************** TEST 'Clang Tools :: clang-tidy/checkers/modernize/macro-to-enum-crlf.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
cp /Users/buildbot/buildbot-root/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/macro-to-enum/crlf.cpp /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp
# executed command: cp /Users/buildbot/buildbot-root/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/macro-to-enum/crlf.cpp /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp
# note: command had no output on stdout or stderr
# RUN: at line 4
chmod u+w /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp
# executed command: chmod u+w /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp
# note: command had no output on stdout or stderr
# RUN: at line 5
clang-tidy /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp -fix --checks='-*,modernize-macro-to-enum' > /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.out 2>&1
# executed command: clang-tidy /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp -fix '--checks=-*,modernize-macro-to-enum'
# .---redirected output from '/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.out'
# | 1 error generated.
# | Error while processing /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/macro-to-enum-crlf.cpp.tmp.cpp.
# | error: PCH file '/Users/buildbot/buildbot-root/aarch64-darwin/build/lib/Support/CMakeFiles/LLVMSupport.dir/cmake_pch.hxx.pch' uses an older format that is no longer supported [clang-diagnostic-error]
# | Found compiler errors, but -fix-errors was not specified.
# | Fixes have NOT been applied.
# |
# | Found compiler error(s).
# `-----------------------------
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
--
```
https://github.com/llvm/llvm-project/pull/202054
More information about the cfe-commits
mailing list