================
@@ -0,0 +1,3 @@
+// RUN: %python -c "from pathlib import Path; 
Path(r'%/t.cpp').write_bytes(b'#define RED 1\r\n#define GREEN 2\r\n')"
----------------
zeyi2 wrote:

I've reverted to the original way of doing this, IMO it would be more 
straightforward to review.

There is also an existing test case 
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/test/clang-apply-replacements/crlf.cpp
 that does similar things.

https://github.com/llvm/llvm-project/pull/202054
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to