[libc-commits] [libc] [libc] Add a simple scope_exit wrapper and use it in socket tests (PR #192615)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Wed May 6 02:37:23 PDT 2026


labath wrote:

> > Since `scope_exit` seems to be still experimental for C++ would it make more sense to put it in top level `__support` since it's not technically C++ standard yet?
> 
> That is what I wanted to ask _you_ :)
> 
> I can see a case for both. I put it here because it made (slightly) more sense to me, but I don't have a feel for the preferences of the project. I have no problem with putting it elsewhere.

I'm leaving this here for now. I'd be happy to move this elsewhere as a followup if needed.

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


More information about the libc-commits mailing list