================ ---------------- AngryLoki wrote:
But automatic replacement is not possible, because `"\n" != r"\n"`. But I checked carefully that all changed places with `\n` and `\t` are regexps, and in regexps it is semantically the same. ``` >>> '\n' in 'test \n test' True >>> r'\n' in 'test \n test' False >>> import re >>> re.search('\n', 'test \n test') <re.Match object; span=(5, 6), match='\n'> >>> re.search(r'\n', 'test \n test') <re.Match object; span=(5, 6), match='\n'> ``` https://github.com/llvm/llvm-project/pull/86806 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits