aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2013-04-10 21:42:06 +0000
committerAnna Zaks <ganna@apple.com>2013-04-10 21:42:06 +0000
commite51362e7f7a53acdad8be65e8c99be3aa4e7fdfb (patch)
tree2e8a3d4d820c9bc28618e6436eef280d06750b54 /clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
parent2d1df6be879105388bf57ecece509a917e27f25d (diff)
downloadllvm-e51362e7f7a53acdad8be65e8c99be3aa4e7fdfb.zip
llvm-e51362e7f7a53acdad8be65e8c99be3aa4e7fdfb.tar.gz
llvm-e51362e7f7a53acdad8be65e8c99be3aa4e7fdfb.tar.bz2
[analyzer] When reporting a leak in RetainCount checker due to an early exit from init, step into init.
The heuristic here (proposed by Jordan) is that, usually, if a leak is due to an early exit from init, the allocation site will be a call to alloc. Note that in other cases init resets self to [super init], which becomes the allocation site of the object. llvm-svn: 179221
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp')
0 files changed, 0 insertions, 0 deletions