[clang] [RFC] Initial implementation of P2719 (PR #113510)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 00:20:43 PST 2025
================
@@ -3403,16 +3405,20 @@ bool FunctionDecl::isReplaceableGlobalAllocationFunction(
if (!getDeclContext()->getRedeclContext()->isTranslationUnit())
return false;
+ bool IsTypeAware = isTypeAwareOperatorNewOrDelete();
+ unsigned MaxParamCount = IsTypeAware + 4;
----------------
cor3ntin wrote:
Maybe a comment explaining the `4` here
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list