https://github.com/ldionne approved this pull request. This is a really well written patch. I like the approach of using a `__scoped_temporary_buffer`. I have a few nitpick comments but this LGTM with those fixed. https://github.com/llvm/llvm-project/pull/100914