[clang] [Clang] Implement P2308R1 - Template Parameter Initialization. (PR #73103)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 12:33:41 PST 2023


================
@@ -6226,6 +6226,15 @@ ExprResult Sema::CheckConvertedConstantExpression(Expr *From, QualType T,
   return R;
 }
 
+ExprResult Sema::EvaluateConvertedConstantExpression(Expr *E, QualType T,
+                                                     APValue &Value,
+                                                     Sema::CCEKind CCE,
+                                                     bool RequireInt) {
+
+  APValue PreNarrowingValue;
----------------
cor3ntin wrote:

That's because I wanted to use the same pattern as 
CheckConvertedConstantExpression/BuildConvertedConstantExpression which both defer to a static function.
They probably could all be changed to be members of Sema if we wanted to.
I'd rather not do that in this patch though

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


More information about the cfe-commits mailing list