[clang] [clang] Implement -Walloc-size diagnostic option (PR #150028)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 22 07:28:18 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
----------------
erichkeane wrote:
```suggestion
decorated with the ``alloc_size`` attribute that don't allocate enough space for
```
https://github.com/llvm/llvm-project/pull/150028
More information about the cfe-commits
mailing list