[clang] [clang] Implement -Walloc-size diagnostic option (PR #150028)

Vladimir Vuksanovic via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 29 07:38:33 PDT 2025


================
@@ -717,6 +717,10 @@ Improvements to Clang's diagnostics
   Added a new warning in this group for the case where the attribute is missing/implicit on
   an override of a virtual method.
 
+- A new warning ``-Walloc-size`` has been added to detect calls to functions
+  decorated with the ``alloc_size`` attribute don't allocate enough space for
----------------
vvuksanovic wrote:

Corrected

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


More information about the cfe-commits mailing list