[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [NFC][SystemZ][z/OS] Replace isText with OpenFlags in MemoryBuffer::getFile()/getFileOrSTDIN() (PR #228189)

Jay Foad via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 5 02:07:17 PST 2026


jayfoad wrote:

>From Claude: For reads through `MemoryBuffer`, `OF_TextWithCRLF` and `OF_Text` behave identically on every platform. So mapping `IsText` → `OF_Text` in `getFileAux` would be a one-line NFC. #228437 could then just pass `/*IsText=*/true` at its three call sites. Spreading `OF_TextWithCRLF` to about 60 read call sites suggests that CRLF matters on reads. It doesn't.

https://github.com/llvm/llvm-project/pull/228189


More information about the cfe-commits mailing list