diff options
author | Vedant Kumar <vsk@apple.com> | 2018-05-30 23:35:44 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-05-30 23:35:44 +0000 |
commit | 61763b65af94107b75ec5be8797b7a845c626930 (patch) | |
tree | 274b6dfca8ecba0211b98b045a3952a0cf5b39b0 /lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py | |
parent | e3c1fb8b124246343f20b98f4035b61dd3ccd7df (diff) | |
download | bcm5719-llvm-61763b65af94107b75ec5be8797b7a845c626930.tar.gz bcm5719-llvm-61763b65af94107b75ec5be8797b7a845c626930.zip |
[Coverage] Discard the last uncompleted deferred region in a decl
Discard the last uncompleted deferred region in a decl, if one exists.
This prevents lines at the end of a function containing only whitespace
or closing braces from being marked as uncovered, if they follow a
region terminator (return/break/etc).
The previous behavior was to heuristically complete deferred regions at
the end of a decl. In practice this ended up being too brittle for too
little gain. Users would complain that there was no way to reach full
code coverage because whitespace at the end of a function would be
marked uncovered.
rdar://40238228
Differential Revision: https://reviews.llvm.org/D46918
llvm-svn: 333609
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py')
0 files changed, 0 insertions, 0 deletions