[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)
Justin Stitt via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 24 10:19:53 PDT 2025
================
@@ -4043,6 +4043,33 @@ def note_cannot_use_trivial_abi_reason : Note<
"it has a __weak field|it has a field of a non-trivial class type|"
"it has an address-discriminated '__ptrauth' field}1">;
+// OverflowBehavior attribute
+def err_overflow_behavior_unknown_ident
+ : Error<"'%0' is not a valid argument to attribute %1, only 'wrap' and "
+ "'no_wrap' "
+ "are supported">;
+def warn_overflow_behavior_non_integer_type
----------------
JustinStitt wrote:
These should be errors. I'll change them over.
https://github.com/llvm/llvm-project/pull/148914
More information about the cfe-commits
mailing list