]> granicus.if.org Git - clang/commit
[analyzer] Consider switch- and goto- labels when constructing the set of executed...
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 23 Feb 2018 23:26:54 +0000 (23:26 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 23 Feb 2018 23:26:54 +0000 (23:26 +0000)
commit599d6eacd94ca6c6bcd81448927929a386d042d0
treeb6c87c3cd3704b25f2b94e8aed3514e8021f51fd
parent91c8aa8a6bfc4f9083f71881ca0941fe5cea590e
[analyzer] Consider switch- and goto- labels when constructing the set of executed lines

When viewing the report in the collapsed mode the label signifying where
did the execution go is often necessary for properly understanding the
context.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/html_diagnostics/relevant_lines/goto.c [new file with mode: 0644]
test/Analysis/html_diagnostics/relevant_lines/switch.c [new file with mode: 0644]
test/Analysis/html_diagnostics/relevant_lines/switch_default.c [new file with mode: 0644]