[libc-commits] [libc] [libc] refactor expected to correctly destruct payload (PR #195873)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed May 6 10:59:59 PDT 2026
michaelrj-google wrote:
having something like `ScopedFd` seems handy for the places where we open/close a file within a single function, but I don't think it would be relevant to the FD Object Wrappers. Notably bionic doesn't use `ScopedFd` for fopen: https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/stdio/stdio.cpp?pli=1%2F%2F#247
I don't need you to write the full patch series to land this but I would like to see at least one usage of it before I approve. I want to avoid adding features just because we might use them in the future.
https://github.com/llvm/llvm-project/pull/195873
More information about the libc-commits
mailing list