[analyzer] Handle implicit statements used for end-of-path nodes' source locs.
authorJordan Rose <jordan_rose@apple.com>
Sat, 6 Oct 2012 01:19:30 +0000 (01:19 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 6 Oct 2012 01:19:30 +0000 (01:19 +0000)
commitc8a78a37bb215f0b4088e04d115fc87419f898ba
tree4ebc06d275addb5f5f52089cd4aca41dac4b4e1a
parentba30d925041fad4acf0d2ecc04748b2fd4ef29e5
[analyzer] Handle implicit statements used for end-of-path nodes' source locs.

Some implicit statements, such as the implicit 'self' inserted for "free"
Objective-C ivar access, have invalid source locations. If one of these
statements is the location where an issue is reported, we'll now look at
the enclosing statements for a valid source location.

<rdar://problem/12446776>

llvm-svn: 165354
clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
clang/test/Analysis/plist-output.m