[clang] Fix preprocessed block comment newline on windows containing extra carriage return (PR #205084)
Joe Kirchoff via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 13 13:58:48 PDT 2026
================
@@ -0,0 +1,9 @@
+// RUN: %{to-crlf} %S/Inputs/comment_save_crlf.h > %t.h
+
+// Verify that prepared header contains \r
+// RUN: tr -d '\n' < %t.h | %{reveal-cr} | FileCheck %s --check-prefix=SANITY
----------------
Rinn wrote:
the reveal-cr is only replacing extra unmatched carriage returns with <CR> so this strips out the \n in the string
https://github.com/llvm/llvm-project/pull/205084
More information about the cfe-commits
mailing list