[clang] [clang] Allow C-style casts in constexpr in MS compatible mode (PR #197005)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon May 25 01:47:13 PDT 2026


================
@@ -15603,3 +15581,17 @@ void ASTContext::recordOffsetOfEvaluation(const OffsetOfExpr *E) {
   if (FieldDecl *FD = Comp.getField(); isPFPField(FD))
     PFPFieldsWithEvaluatedOffset.insert(FD);
 }
+
+bool ASTContext::maybeFoldMSConstexpr(
----------------
tbaederr wrote:

I suggest to rename this function

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


More information about the cfe-commits mailing list