[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 20 01:09:41 PDT 2025
================
@@ -3660,6 +3660,8 @@ class TreeTransform {
return SemaRef.BuildCXXNoexceptExpr(Range.getBegin(), Arg, Range.getEnd());
}
+ bool HeuristicallyComputeSizeOfPackExpr() const { return true; }
+
----------------
zyn0217 wrote:
I choose to extract a function `ComputeSizeOfPackExprWithoutSubstitution`, since there is some common logic for extracting the pack pattern beforehand. Thus overriding `TransformSizeOfPackExpr` might not be suitable due to duplication.
(We can't add boolean parameters to the function either, as it is expanded from macros.)
https://github.com/llvm/llvm-project/pull/132061
More information about the cfe-commits
mailing list