[clang] [clang] Fix -Wdouble-promotion in C++ list-initialization (PR #159992)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 22 19:40:58 PDT 2025
================
@@ -12797,6 +12797,22 @@ static void CheckCommaOperand(
S.CheckImplicitConversion(E, T, CC);
}
+static Expr *IgnoreExplicitCastForImplicitConversionCheck(ExplicitCastExpr *E) {
----------------
Sirraide wrote:
I’d honestly just inline this function into the one place it’s used because it makes it a big clearer what’s going on; can you also add a comment that this is specifically used to suppress `-Wdouble-promotion`.
https://github.com/llvm/llvm-project/pull/159992
More information about the cfe-commits
mailing list