<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/CoverageMapping/trycatch.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements.""</title>
<updated>2021-03-04T19:52:43+00:00</updated>
<author>
<name>Zequan Wu</name>
<email>zequanwu@google.com</email>
</author>
<published>2021-03-04T19:50:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9783e2098800b954c55ae598a1ce5c4b93444fc0'/>
<id>9783e2098800b954c55ae598a1ce5c4b93444fc0</id>
<content type='text'>
Reland with update on test case ContinuousSyncmode/basic.c.

This reverts commit fe5c2c3ca682b140dd5e640e75948363b6b25ef9.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reland with update on test case ContinuousSyncmode/basic.c.

This reverts commit fe5c2c3ca682b140dd5e640e75948363b6b25ef9.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."</title>
<updated>2021-03-04T13:53:30+00:00</updated>
<author>
<name>Nico Weber</name>
<email>thakis@chromium.org</email>
</author>
<published>2021-03-04T13:52:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=fe5c2c3ca682b140dd5e640e75948363b6b25ef9'/>
<id>fe5c2c3ca682b140dd5e640e75948363b6b25ef9</id>
<content type='text'>
This reverts commit 2d7374a0c680f96bdcdb3d05034a93bf145d140f.
Breaks ContinuousSyncMode/basic.c in check-profile on macOS.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 2d7374a0c680f96bdcdb3d05034a93bf145d140f.
Breaks ContinuousSyncMode/basic.c in check-profile on macOS.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Emit gap region between statements if first statements contains terminate statements.</title>
<updated>2021-03-03T19:25:49+00:00</updated>
<author>
<name>Zequan Wu</name>
<email>zequanwu@google.com</email>
</author>
<published>2021-03-03T04:35:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2d7374a0c680f96bdcdb3d05034a93bf145d140f'/>
<id>2d7374a0c680f96bdcdb3d05034a93bf145d140f</id>
<content type='text'>
Differential Revision: https://reviews.llvm.org/D97101
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: https://reviews.llvm.org/D97101
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Add empty line regions to SkippedRegions</title>
<updated>2020-09-21T19:42:53+00:00</updated>
<author>
<name>Zequan Wu</name>
<email>zequanwu@google.com</email>
</author>
<published>2020-09-02T21:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9caa3fbe03f43e3eec30262fbba87c1ee15c05a3'/>
<id>9caa3fbe03f43e3eec30262fbba87c1ee15c05a3</id>
<content type='text'>
Differential Revision: https://reviews.llvm.org/D84988
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: https://reviews.llvm.org/D84988
</pre>
</div>
</content>
</entry>
<entry>
<title>Reland [Coverage] Add comment to skipped regions</title>
<updated>2020-07-28T20:20:57+00:00</updated>
<author>
<name>Zequan Wu</name>
<email>zequanwu@google.com</email>
</author>
<published>2020-07-23T02:04:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b46176bbb094610460667edad950a9c99f844118'/>
<id>b46176bbb094610460667edad950a9c99f844118</id>
<content type='text'>
Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757.
Add comment to skipped regions so we don't track execution count for lines containing only comments.

Differential Revision: https://reviews.llvm.org/D83592
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757.
Add comment to skipped regions so we don't track execution count for lines containing only comments.

Differential Revision: https://reviews.llvm.org/D83592
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert abd45154b "[Coverage] Add comment to skipped regions"</title>
<updated>2020-07-22T15:09:20+00:00</updated>
<author>
<name>Hans Wennborg</name>
<email>hans@chromium.org</email>
</author>
<published>2020-07-22T15:01:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=238bbd48c5a5f84deca36e5df980241578f7c1df'/>
<id>238bbd48c5a5f84deca36e5df980241578f7c1df</id>
<content type='text'>
This casued assertions during Chromium builds. See comment on the code review

&gt; Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757.
&gt; Add comment to skipped regions so we don't track execution count for lines containing only comments.
&gt;
&gt; Differential Revision: https://reviews.llvm.org/D84208

This reverts commit abd45154bdb6b76c5b480455eacc8c75b08242aa and the
follow-up 87d725473380652bbe845fd2fbd9c0507a55172f.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This casued assertions during Chromium builds. See comment on the code review

&gt; Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757.
&gt; Add comment to skipped regions so we don't track execution count for lines containing only comments.
&gt;
&gt; Differential Revision: https://reviews.llvm.org/D84208

This reverts commit abd45154bdb6b76c5b480455eacc8c75b08242aa and the
follow-up 87d725473380652bbe845fd2fbd9c0507a55172f.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Add comment to skipped regions</title>
<updated>2020-07-22T00:34:18+00:00</updated>
<author>
<name>Zequan Wu</name>
<email>zequanwu@google.com</email>
</author>
<published>2020-07-20T19:57:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=abd45154bdb6b76c5b480455eacc8c75b08242aa'/>
<id>abd45154bdb6b76c5b480455eacc8c75b08242aa</id>
<content type='text'>
Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757.
Add comment to skipped regions so we don't track execution count for lines containing only comments.

Differential Revision: https://reviews.llvm.org/D84208
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757.
Add comment to skipped regions so we don't track execution count for lines containing only comments.

Differential Revision: https://reviews.llvm.org/D84208
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Discard the last uncompleted deferred region in a decl</title>
<updated>2018-05-30T23:35:44+00:00</updated>
<author>
<name>Vedant Kumar</name>
<email>vsk@apple.com</email>
</author>
<published>2018-05-30T23:35:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=61763b65af94107b75ec5be8797b7a845c626930'/>
<id>61763b65af94107b75ec5be8797b7a845c626930</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Emit a gap area after if conditions</title>
<updated>2017-11-09T02:33:38+00:00</updated>
<author>
<name>Vedant Kumar</name>
<email>vsk@apple.com</email>
</author>
<published>2017-11-09T02:33:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2e8c87590546477736d6744edf8f5cf48bf1ef41'/>
<id>2e8c87590546477736d6744edf8f5cf48bf1ef41</id>
<content type='text'>
The area immediately after the closing right-paren of an if condition
should have a count equal to the 'then' block's count. Use a gap region
to set this count, so that region highlighting for the 'then' block
remains precise.

This solves a problem we have with wrapped segments. Consider:

  1| if (false)
  2|   foo();

Without a gap area starting after the condition, the wrapped segment
from line 1 would make it look like line 2 is executed, when it's not.

rdar://35373009

llvm-svn: 317758
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The area immediately after the closing right-paren of an if condition
should have a count equal to the 'then' block's count. Use a gap region
to set this count, so that region highlighting for the 'then' block
remains precise.

This solves a problem we have with wrapped segments. Consider:

  1| if (false)
  2|   foo();

Without a gap area starting after the condition, the wrapped segment
from line 1 would make it look like line 2 is executed, when it's not.

rdar://35373009

llvm-svn: 317758
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Precise region termination with deferred regions (reapply)</title>
<updated>2017-09-08T18:44:56+00:00</updated>
<author>
<name>Vedant Kumar</name>
<email>vsk@apple.com</email>
</author>
<published>2017-09-08T18:44:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=747b0e2905dc8a2b25d5ae97f5008efcd831795b'/>
<id>747b0e2905dc8a2b25d5ae97f5008efcd831795b</id>
<content type='text'>
The current coverage implementation doesn't handle region termination
very precisely. Take for example an `if' statement with a `return':

  void f() {
    if (true) {
      return; // The `if' body's region is terminated here.
    }
    // This line gets the same coverage as the `if' condition.
  }

If the function `f' is called, the line containing the comment will be
marked as having executed once, which is not correct.

The solution here is to create a deferred region after terminating a
region. The deferred region is completed once the start location of the
next statement is known, and is then pushed onto the region stack.
In the cases where it's not possible to complete a deferred region, it
can safely be dropped.

Testing: lit test updates, a stage2 coverage-enabled build of clang

This is a reapplication but there are no changes from the original commit.
With D36813, the segment builder in llvm will be able to handle deferred
regions correctly.

llvm-svn: 312818
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current coverage implementation doesn't handle region termination
very precisely. Take for example an `if' statement with a `return':

  void f() {
    if (true) {
      return; // The `if' body's region is terminated here.
    }
    // This line gets the same coverage as the `if' condition.
  }

If the function `f' is called, the line containing the comment will be
marked as having executed once, which is not correct.

The solution here is to create a deferred region after terminating a
region. The deferred region is completed once the start location of the
next statement is known, and is then pushed onto the region stack.
In the cases where it's not possible to complete a deferred region, it
can safely be dropped.

Testing: lit test updates, a stage2 coverage-enabled build of clang

This is a reapplication but there are no changes from the original commit.
With D36813, the segment builder in llvm will be able to handle deferred
regions correctly.

llvm-svn: 312818
</pre>
</div>
</content>
</entry>
</feed>
