[clang] [Clang] Introduce malloc_span attribute (PR #167010)
Marco Elver via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 10 01:11:57 PST 2025
================
@@ -327,6 +327,10 @@ Attribute Changes in Clang
- New format attributes ``gnu_printf``, ``gnu_scanf``, ``gnu_strftime`` and ``gnu_strfmon`` are added
as aliases for ``printf``, ``scanf``, ``strftime`` and ``strfmon``. (#GH16219)
+- New function attribute `malloc_span` is added. It has the `malloc` semantics, but must be applied
----------------
melver wrote:
s/It has the `malloc` semantics/Its semantics are similar to the `malloc` attribute/
The semantics aren't quite identical.
https://github.com/llvm/llvm-project/pull/167010
More information about the cfe-commits
mailing list