Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Spacetown
Copy link
Member

@Spacetown Spacetown commented Jan 7, 2023

Change option as suggested in #704.

gcc-11, clang-10 and clang-11 put branches on closing braces which where excluded by gcovr. Now the default is to not exclude this lines and use the unfiltered data from gcov. With the option --exclude-noncode-lines the user can activate the previous behavior.

Related issue: #212

@Spacetown Spacetown added Type: Enhancement Filters related to filters, include/exclude, path handling Gcov labels Jan 7, 2023
@Spacetown Spacetown added this to the Upcoming release milestone Jan 7, 2023
@Spacetown Spacetown requested a review from latk January 7, 2023 21:43
@codecov
Copy link

codecov bot commented Jan 7, 2023

Codecov Report

Base: 95.55% // Head: 95.55% // No change to project coverage 👍

Coverage data is based on head (5476387) compared to base (dce78fc).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #705   +/-   ##
=======================================
  Coverage   95.55%   95.55%           
=======================================
  Files          28       28           
  Lines        3736     3736           
  Branches      640      640           
=======================================
  Hits         3570     3570           
  Misses         93       93           
  Partials       73       73           
Flag Coverage Δ
ubuntu-20.04 94.50% <100.00%> (ø)
windows-2019 95.22% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gcovr/configuration.py 99.68% <ø> (ø)
gcovr/exclusions/__init__.py 100.00% <100.00%> (ø)
gcovr/tests/test_gcov_parser.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Spacetown Spacetown merged commit 3a99c73 into gcovr:master Feb 5, 2023
@Spacetown Spacetown deleted the reworke_noncode_exclusion branch February 5, 2023 17:37
kodiakhq bot pushed a commit to acts-project/acts that referenced this pull request Nov 5, 2023
Addresses and closes Issue #1211 
----------------------------------
The supposed problem was "Parallel processing of gcov data. ([#%s592](gcovr/gcovr#592))" in gcov 5.1. This was already fixed in 5.2.

We need to add `--exclude-noncode-lines` due to a breaking change in gcovr 6.0, otherwise our coverage would change a lot (-0.33%):
New [--exclude-noncode-lines](https://gcovr.com/en/stable/manpage.html#cmdoption-gcovr-exclude-noncode-lines) to exclude noncode lines. Noncode lines are not excluded by default anymore. ([#%s704](gcovr/gcovr#704), [#%s705](gcovr/gcovr#705))

Closes #1211

Update the gcovr-call
----------------------
- remove use of local bundled version (files were removed some years ago)
- remove outdated exclude of folder `/Legacy/`
- remind user to update gcovr to at least `v5.0`
- assert if `v5.1` is used
- black
njacazio pushed a commit to njacazio/acts that referenced this pull request Jun 13, 2025
…ect#2629)

Addresses and closes Issue acts-project#1211 
----------------------------------
The supposed problem was "Parallel processing of gcov data. ([#%s592](gcovr/gcovr#592))" in gcov 5.1. This was already fixed in 5.2.

We need to add `--exclude-noncode-lines` due to a breaking change in gcovr 6.0, otherwise our coverage would change a lot (-0.33%):
New [--exclude-noncode-lines](https://gcovr.com/en/stable/manpage.html#cmdoption-gcovr-exclude-noncode-lines) to exclude noncode lines. Noncode lines are not excluded by default anymore. ([#%s704](gcovr/gcovr#704), [#%s705](gcovr/gcovr#705))

Closes acts-project#1211

Update the gcovr-call
----------------------
- remove use of local bundled version (files were removed some years ago)
- remove outdated exclude of folder `/Legacy/`
- remind user to update gcovr to at least `v5.0`
- assert if `v5.1` is used
- black
njacazio pushed a commit to njacazio/acts that referenced this pull request Jun 13, 2025
…ect#2629)

Addresses and closes Issue acts-project#1211 
----------------------------------
The supposed problem was "Parallel processing of gcov data. ([#%s592](gcovr/gcovr#592))" in gcov 5.1. This was already fixed in 5.2.

We need to add `--exclude-noncode-lines` due to a breaking change in gcovr 6.0, otherwise our coverage would change a lot (-0.33%):
New [--exclude-noncode-lines](https://gcovr.com/en/stable/manpage.html#cmdoption-gcovr-exclude-noncode-lines) to exclude noncode lines. Noncode lines are not excluded by default anymore. ([#%s704](gcovr/gcovr#704), [#%s705](gcovr/gcovr#705))

Closes acts-project#1211

Update the gcovr-call
----------------------
- remove use of local bundled version (files were removed some years ago)
- remove outdated exclude of folder `/Legacy/`
- remind user to update gcovr to at least `v5.0`
- assert if `v5.1` is used
- black
D-Walther pushed a commit to D-Walther/gcovr that referenced this pull request Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Filters related to filters, include/exclude, path handling Gcov Type: Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant