[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
Thu May 21 21:14:47 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:
The name "MSConstexpr" is already taken by the `msvc::constexpr` abomination, e.g. we have a `MSConstexprContextRAII` in `ExprConstant.cpp`.
https://github.com/llvm/llvm-project/pull/197005
More information about the cfe-commits
mailing list