]> granicus.if.org Git - clang/commit
[analyzer] Teach trackNullOrUndefValue about calls to property accessors.
authorDevin Coughlin <dcoughlin@apple.com>
Fri, 8 Apr 2016 19:59:16 +0000 (19:59 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Fri, 8 Apr 2016 19:59:16 +0000 (19:59 +0000)
commit9535640b53d0c29ef6ae54db653c7bc7b123c7a7
treef5818388288f29d81b9a9aeecd781fa76c07c40a
parent1a7db1ee8291541058b2b19d0ed87b41f56cd13d
[analyzer] Teach trackNullOrUndefValue about calls to property accessors.

Teach trackNullOrUndefValue() how to look through PseudoObjectExprs to find
the underlying method call for property getters. This makes over-suppression
of 'return nil' in getters consistent with the similar over-suppression for
method and function calls.

rdar://problem/24437252

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265839 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/inlining/false-positive-suppression.m