]> granicus.if.org Git - clang/commit
[analyzer] Don't generate a summary for "freeWhenDone" if method is
authorAnna Zaks <ganna@apple.com>
Tue, 11 Dec 2012 00:17:53 +0000 (00:17 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 11 Dec 2012 00:17:53 +0000 (00:17 +0000)
commitc2cca2361aeafdf9170de2695b17d8bcd1c6f7db
tree8c56f59a82dde9840413b10b9dff7543403350b9
parent39450d0469e0d5589ad39fd0b20b5742750619a0
[analyzer] Don't generate a summary for "freeWhenDone" if method is
inlined.

Fixes a false positive that occurs if a user writes their own
initWithBytesNoCopy:freeWhenDone wrapper.

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