[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 19 13:11:48 PDT 2025


================
@@ -339,6 +389,8 @@ ConvertTypeToDiagnosticString(ASTContext &Context, QualType Ty,
          << "' " << Values << ")";
       return DecoratedString;
     }
+
+    TryConvertOverflowBehaviorTypeToDiagnosticString(Context, Ty, S);
----------------
mizvekov wrote:

> I suppose I expected most immediate users of this feature to define a macro for it.

I suppose that's another argument in favor of them being too ugly to type in source code.

Why not just use the `__wrap` spelling then, and save the users having to define a macro for it?

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


More information about the cfe-commits mailing list