]> granicus.if.org Git - clang/commit
[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)
commitcf4ce93caedca1d91ec5824981f9e45eda20b261
treeb90b7b014b80bd6b462b8c5050a4e69239a1595e
parentd29245ce5ed1f6aee6f056c85ba77b009f11ee83
[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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165354 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/PathDiagnostic.cpp
test/Analysis/plist-output.m