[clang] [clang] Fix -Wdouble-promotion in C++ list-initialization (PR #159992)

Marcel Jacobse via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 11:11:12 PDT 2025


================
@@ -12797,6 +12797,22 @@ static void CheckCommaOperand(
     S.CheckImplicitConversion(E, T, CC);
 }
 
+static Expr *IgnoreExplicitCastForImplicitConversionCheck(ExplicitCastExpr *E) {
----------------
mjacobse wrote:

Added as suggested. Let me know if you'd like to see any more tests.

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


More information about the cfe-commits mailing list