================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits