[clang] [C] Handle comma operator for implicit int->enum conversions (PR #138752)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue May 6 14:25:50 PDT 2025


================
@@ -11647,6 +11647,29 @@ static void DiagnoseFloatingImpCast(Sema &S, Expr *E, QualType T,
   }
 }
 
+static void CheckCommaOperand(Sema &S, Expr *E, QualType T, SourceLocation CC,
+                              bool Check) {
----------------
erichkeane wrote:

`Check` is pretty weird here... I'd almost suggest something like, `isResultOperand` or something?  But doing away with thsi function entirely wouldn't harm readability.

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


More information about the cfe-commits mailing list