llvm-project
635e6d76 - [analyzer] Fix FP for cplusplus.placement new #149240 (#150161)

Commit
144 days ago
[analyzer] Fix FP for cplusplus.placement new #149240 (#150161) Fix false positive where warnings were asserted for placement new even when no additional space is requested The PlacementNewChecker incorrectly triggered warnings when the storage provided matched or exceeded the allocated type size, causing false positives. Now the warning triggers only when the provided storage is strictly less than the required size. Add test cases covering exact size, undersize, and oversize scenarios to validate the fix. Fixes #149240
Author
Parents
Loading