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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 07:01:08 PDT 2024


================
@@ -4506,3 +4506,9 @@ def CodeAlign: StmtAttr {
     static constexpr int MaximumAlignment = 4096;
   }];
 }
+
+def Wraps : DeclOrTypeAttr {
+  let Spellings = [GNU<"wraps">];
----------------
erichkeane wrote:

Typically we'd want to do a `Clang` spelling here, which will allow the `[[clang::wraps]]` variant.

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


More information about the cfe-commits mailing list