[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 26 15:42:56 PDT 2025
================
@@ -405,6 +405,9 @@ ArgType::matchesType(ASTContext &C, QualType argTy) const {
argTy = PT->getPointeeType();
}
+ if (const auto *OBT = argTy->getAs<OverflowBehaviorType>())
+ argTy = OBT->getUnderlyingType();
----------------
efriedma-quic wrote:
Probably the documentation should mention this is allowed.
https://github.com/llvm/llvm-project/pull/148914
More information about the cfe-commits
mailing list