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

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 22 19:56:23 PDT 2025


================
@@ -74,6 +74,13 @@ QualType clang::desugarForDiagnostic(ASTContext &Context, QualType QT,
       QT = AT->desugar();
       continue;
     }
+    // ... or an overflow behavior type.
+    if (const OverflowBehaviorType *OBT = dyn_cast<OverflowBehaviorType>(Ty)) {
+      if (!OBT->isSugared())
+        break;
----------------
mizvekov wrote:

OverflowBehaviorType is never a sugar node:
```suggestion
```

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


More information about the cfe-commits mailing list