[analyzer] Don't process autorelease counts in synthesized function bodies.
authorJordan Rose <jordan_rose@apple.com>
Thu, 1 Aug 2013 22:16:36 +0000 (22:16 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 1 Aug 2013 22:16:36 +0000 (22:16 +0000)
commit7699e4a50b14faf8a0dd821d0bda87eaa67b45eb
treefbb1cb674838f14c181c1c0a2717f89e6bf036da
parent5fbe7f97664dc2024252c03729198eb4b958a03c
[analyzer] Don't process autorelease counts in synthesized function bodies.

We process autorelease counts when we exit functions, but if there's an
issue in a synthesized body the report will get dropped. Just skip the
processing for now and let it get handled when the caller gets around to
processing autoreleases.

(This is still suboptimal: objects autoreleased in the caller context
should never be warned about when exiting a callee context, synthesized
or not.)

Second half of <rdar://problem/14611722>

llvm-svn: 187625
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
clang/test/Analysis/inlining/path-notes.m