[cfe-commits] [PATCH] Intercept allocation to skim allocated types

Richard Smith richard at metafoo.co.uk
Fri Jan 18 18:03:52 PST 2013


  > void* __intercept_delete__(void*, const std::type_info&);

  I'm concerned about passing the type in here: the type need not match the type passed to the new interceptor. Also, do you really want to intercept placement-new?

  I wonder whether this would be better addressed by adding a specific form of operator new, which is passed the type_info in addition to the usual parameters?

http://llvm-reviews.chandlerc.com/D298



More information about the cfe-commits mailing list