[llvm] [llvm][ADT] Mark scope_exit contructors [[nodiscard]] (PR #179720)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 5 10:09:31 PST 2026


kuhar wrote:

Maybe a better approach is to mark the whole class as `[[nodiscard]]` if older compilers don't like constructor attributes

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


More information about the llvm-commits mailing list