[clang] [clang] Convert to a C23 enum with bool underlying type like bool (PR #244494)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 18:56:53 PST 2026
================
@@ -176,6 +176,15 @@ static bool MustVisitNullValue(const Expr *E) {
return E->getType()->isNullPtrType();
}
+/// Return true if conversion to \p T has the semantics of conversion to bool:
+/// \p T is bool or an enumeration with a fixed underlying type of bool
+/// (C23 6.7.3.3p16).
+static bool hasBoolConversionSemantics(QualType T) {
----------------
shafik wrote:
Ah yes, I missed that `getScalarTypeKind` was changed, GH shows it in the light blue shade and I missed the connection.
https://github.com/llvm/llvm-project/pull/244494
More information about the cfe-commits
mailing list