[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 12:27:13 PDT 2025
================
@@ -339,6 +389,8 @@ ConvertTypeToDiagnosticString(ASTContext &Context, QualType Ty,
<< "' " << Values << ")";
return DecoratedString;
}
+
+ TryConvertOverflowBehaviorTypeToDiagnosticString(Context, Ty, S);
----------------
mizvekov wrote:
If you feel the full attribute syntax is too ugly to print in diagnostics, it's probably too ugly to type in source code anyway :)
We should perhaps reconsider the spelling then.
Note this is not easy to get right, for example if the function above has to do something special about PointerType, why wouldn't it have to do anything special about ReferenceTypes, and the other strange things we have to support, like objective-c block pointers?
https://github.com/llvm/llvm-project/pull/148914
More information about the cfe-commits
mailing list