[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 21:01:48 PDT 2026
================
@@ -0,0 +1,6 @@
+// Verify the fix-it preserves CRLF line endings.
+
+// RUN: cp %S/Inputs/macro-to-enum/crlf.cpp %t.cpp
+// RUN: chmod u+w %t.cpp
+// RUN: clang-tidy %t.cpp -fix --checks='-*,modernize-macro-to-enum' > %t.out 2>&1
----------------
dyung wrote:
I suspect the fix you need is to use `%check_clang_tidy` instead of just `clang-tidy`.
https://github.com/llvm/llvm-project/pull/202054
More information about the cfe-commits
mailing list