CPP: Autoformat 'Critical'.

This commit is contained in:
Geoffrey White
2019-04-17 14:17:24 +01:00
parent 45a35a8572
commit e395f5215f
34 changed files with 654 additions and 635 deletions

View File

@@ -7,12 +7,11 @@
* @id cpp/new-delete-array-mismatch
* @tags reliability
*/
import NewDelete
from Expr alloc, Expr free, Expr freed
where
allocReaches(freed, alloc, "new") and
freeExprOrIndirect(free, freed, "delete[]")
select
free, "This memory may have been allocated with '$@', not 'new[]'.",
alloc, "new"
select free, "This memory may have been allocated with '$@', not 'new[]'.", alloc, "new"