]> granicus.if.org Git - clang/commit
[analyzer] These implements unix.MismatchedDeallocatorChecker checker.
authorAnton Yartsev <anton.yartsev@gmail.com>
Thu, 28 Mar 2013 17:05:19 +0000 (17:05 +0000)
committerAnton Yartsev <anton.yartsev@gmail.com>
Thu, 28 Mar 2013 17:05:19 +0000 (17:05 +0000)
commit849c7bf718ed3c08bd66b93f0bd508a44bb2f669
tree8771e442de7dac494d6dffb0ffb0c871973c0f2f
parent94cf910ac2d1719c1dfc163bbec3953f12efdf6f
[analyzer] These implements unix.MismatchedDeallocatorChecker checker.
+ Improved display names for allocators and deallocators

The checker checks if a deallocation function matches allocation one. ('free' for 'malloc', 'delete' for 'new' etc.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178250 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
test/Analysis/NewDelete-checker-test.mm
test/Analysis/alloc-match-dealloc.mm [new file with mode: 0644]
test/Analysis/free.c
test/Analysis/malloc.mm