[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

Jens Gustedt via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 31 12:32:58 PDT 2023


gustedt wrote:

Hi, 
yes the really bad choice here is by gcc to have the same name for basically two different attributes.
For the value, they also missed the opportunity to do something sensible when moving to C++ attributes, what a pitty. 

For a concrete guideline in that jungle, when (= which version) do you expect this patch to hit distribution? Will it be in clang-18 once that is released?

Can we expect a similar feature, let's Call it clang::deallocator_function in a future version?
Thanks
 Jens
-- 
Jens Gustedt - INRIA & ICube, Strasbourg, France 

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


More information about the cfe-commits mailing list