]> granicus.if.org Git - clang/commit
[analyzer] Fix r168019 to work with unpruned paths as well.
authorJordan Rose <jordan_rose@apple.com>
Fri, 7 Dec 2012 19:56:29 +0000 (19:56 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 7 Dec 2012 19:56:29 +0000 (19:56 +0000)
commitafa7cae15b117c4b75794c6c32424953d94b4359
tree4c4dc8bb7e558f468cf98285eeff9ff72d6497e2
parent18f860ee6cc43c8fc80834073b097eb5c02b22cf
[analyzer] Fix r168019 to work with unpruned paths as well.

This is the case where the analyzer tries to print out source locations
for code within a synthesized function body, which of course does not have
a valid source location. The previous fix attempted to do this during
diagnostic path pruning, but some diagnostics have pruning disabled, and
so any diagnostic with a path that goes through a synthesized body will
either hit an assertion or emit invalid output.

<rdar://problem/12657843> (again)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169631 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/inlining/path-notes.m