[analyzer] Do not add invalid source location to the coverage information
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 7 Sep 2018 00:43:17 +0000 (00:43 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 7 Sep 2018 00:43:17 +0000 (00:43 +0000)
commit55e3d1ec353a5849a0c3da72faa44cec6d528dfa
treeaf36bc77bf3c821a4485ab26955d7ecf93a1ed7a
parent5f8d361c9cb718a1001d52442bdf88cd046b6174
[analyzer] Do not add invalid source location to the coverage information

Invalid source locations may arise from generated code.

Differential Revision: https://reviews.llvm.org/D51761

llvm-svn: 341618
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp [new file with mode: 0644]