[Lldb-commits] [lldb] [llvm] [LLVM][ADT] Make `scope-exit` CTAD-capable (PR #173131)

Anshul Nigham via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 9 09:42:16 PST 2026


nigham wrote:

Changing the namespace of the `scope_exit` class (from `llvm::detail` to `llvm`) has some consequences. Projects that are using llvm as submodules ([circt](https://github.com/llvm/circt) and [carbon-lang](https://github.com/carbon-language/carbon-lang/tree/trunk) are places where I hit this) before this commit will need to either wait until they're past this commit to use it directly, or will need to use the older type first and then update again when updating LLVM.

Can we consider aliasing `llvm::detail::scope_exit` to `llvm::scope_exit` to enable easier and more expedient migrations? I'm happy to send a PR.

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


More information about the lldb-commits mailing list