]> granicus.if.org Git - clang/commit
[analyzer] Check allocation family more precise.
authorAnton Yartsev <anton.yartsev@gmail.com>
Fri, 5 Apr 2013 02:25:02 +0000 (02:25 +0000)
committerAnton Yartsev <anton.yartsev@gmail.com>
Fri, 5 Apr 2013 02:25:02 +0000 (02:25 +0000)
commit418780f132a6d790b248ef91e1067c3c3dd31350
tree09b861b9473d99885d0f7548a1e36a099b0e9429
parentc84543123a12045f8a1415c1f05b647b70190f34
[analyzer] Check allocation family more precise.

The statement passed to isTrackedFamily() might be a user defined function calling malloc; in this case we got AF_NONE family for this function.
Now the allocation family is derived from Sym, that holds a family of a real allocator.

This commit is also a movement towards getting rid of tracking memory allocating by unknown means.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178834 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MallocChecker.cpp