[libcxx-commits] [clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 27 07:05:25 PST 2025


================
@@ -3349,6 +3360,230 @@ static QualType builtinCommonTypeImpl(Sema &S, ElaboratedTypeKeyword Keyword,
   }
 }
 
+static QualType CopyCV(QualType From, QualType To) {
+  if (From.isConstQualified())
+    To.addConst();
+  if (From.isVolatileQualified())
+    To.addVolatile();
+  return To;
+}
+
+// COND-RES(X, Y) be decltype(false ? declval<X(&)()>()() : declval<Y(&)()>()())
----------------
philnik777 wrote:

What exactly do you want? I'm quoting the standard here, just like everywhere else.

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


More information about the libcxx-commits mailing list