[clang] [RFC] Initial implementation of P2719 (PR #113510)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 21:57:34 PST 2024


================
@@ -3358,6 +3358,12 @@ bool FunctionDecl::isReservedGlobalPlacementOperator() const {
     return false;
 
   const auto *proto = getType()->castAs<FunctionProtoType>();
+  if (proto->getNumParams() < 2)
+    return false;
+  bool IsTypeAwareAllocator =
----------------
ojhunt wrote:

Yeah, I think this may date back to before a bunch of the helpers like isTypeIdentitySpecialization() so the logic was probably somewhat longer

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


More information about the cfe-commits mailing list