[clang] [Clang] add wraps and no_wraps attributes (PR #115094)
Justin Stitt via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 6 11:19:43 PST 2024
================
@@ -4142,6 +4142,12 @@ class BinaryOperator : public Expr {
return getFPFeaturesInEffect(LO).getAllowFEnvAccess();
}
+ /// Does one of the subexpressions have the wraps attribute?
+ bool hasWrappingOperand(const ASTContext &Ctx) const;
+
+ /// How about the no_wraps attribute?
+ bool hasNonWrappingOperand(const ASTContext &Ctx) const;
----------------
JustinStitt wrote:
Oops, nice catch. Fixed in https://github.com/llvm/llvm-project/pull/115094/commits/3e3ad8aa2dacdd0ea209e6540582b25caf3b9b00
https://github.com/llvm/llvm-project/pull/115094
More information about the cfe-commits
mailing list