[clang] [Clang] Add wraps attribute (for granular integer overflow handling) (PR #86618)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 21 12:26:22 PDT 2024


ojhunt wrote:

I’m a little concerned about not allowing the attribute in C++ - the existence of other options in C++ does not mean they are an option (due to various and sundry restrictions of C++ version upgrades different projects have), but also you trivially end up in cases where header code is correct/safe in C, but undefined when included in C++.

To me that seems like a significant footgun.

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


More information about the cfe-commits mailing list