# \#cpp

**URL:** https://community.codecov.com/tag/cpp/10.md

[Latest](https://community.codecov.com/latest.md) · [Categories](https://community.codecov.com/categories.md) · [Tags](https://community.codecov.com/tags.md)

---

## [No Github PR comments in private repositories](https://community.codecov.com/t/no-github-pr-comments-in-private-repositories/4298)

<div class="topic-metadata">

**Author:** [@jnooree](https://community.codecov.com/u/jnooree)\
**Replies:** 2\
**Last updated:** [May 2, 2023, 6:48am UTC](https://community.codecov.com/t/no-github-pr-comments-in-private-repositories/4298 "2023-05-02T06:48:48Z")

</div>

Before submitting a topic, please confirm the following I have searched for similar issues before creating this topic. I have verified that my repository is using the Codecov GitHub app, if using GitHub I have valid…

---

## [Can I see line-by-line coverage in File explorer uploaded from a specific flag, or a subset of flags?](https://community.codecov.com/t/can-i-see-line-by-line-coverage-in-file-explorer-uploaded-from-a-specific-flag-or-a-subset-of-flags/4251)

<div class="topic-metadata">

**Author:** [@jdanek](https://community.codecov.com/u/jdanek)\
**Replies:** 3\
**Last updated:** [April 11, 2023, 7:23am UTC](https://community.codecov.com/t/can-i-see-line-by-line-coverage-in-file-explorer-uploaded-from-a-specific-flag-or-a-subset-of-flags/4251 "2023-04-11T07:23:42Z")

</div>

Description While reading Carryforward Flags, I saw a screenshot on that page, which suggested to me that on the “File explorer” tab, I should be able to select flags to show coverage from. For example. When I have f…

---

## [Decrease in code coverage reported without any related code changes on GitHub push/PR](https://community.codecov.com/t/decrease-in-code-coverage-reported-without-any-related-code-changes-on-github-push-pr/4203)

<div class="topic-metadata">

**Author:** [@firewave](https://community.codecov.com/u/firewave)\
**Replies:** 3\
**Last updated:** [March 31, 2023, 2:09am UTC](https://community.codecov.com/t/decrease-in-code-coverage-reported-without-any-related-code-changes-on-github-push-pr/4203 "2023-03-31T02:09:02Z")

</div>

Before submitting a topic, please confirm the following I have searched for similar issues before creating this topic. I have verified that my repository is using the Codecov GitHub app, if using GitHub I have valid…

---

## [Problem getting the source code from your provider. Unable to show line by line coverage](https://community.codecov.com/t/problem-getting-the-source-code-from-your-provider-unable-to-show-line-by-line-coverage/4128)

<div class="topic-metadata">

**Author:** [@GenieTim](https://community.codecov.com/u/GenieTim)\
**Replies:** 6\
**Last updated:** [March 23, 2023, 7:48am UTC](https://community.codecov.com/t/problem-getting-the-source-code-from-your-provider-unable-to-show-line-by-line-coverage/4128 "2023-03-23T07:48:04Z")

</div>

Before submitting a topic, please confirm the following I have searched for similar issues before creating this topic. I have verified that my repository is using the Codecov GitHub app, if using GitHub I have valid…

---

## [Codecov actions and comments suddenly appeared in PRs/CI](https://community.codecov.com/t/codecov-actions-and-comments-suddenly-appeared-in-prs-ci/4202)

<div class="topic-metadata">

**Author:** [@firewave](https://community.codecov.com/u/firewave)\
**Replies:** 7\
**Last updated:** [March 17, 2023, 3:11pm UTC](https://community.codecov.com/t/codecov-actions-and-comments-suddenly-appeared-in-prs-ci/4202 "2023-03-17T15:11:41Z")

</div>

Before submitting a topic, please confirm the following I have searched for similar issues before creating this topic. I have verified that my repository is using the Codecov GitHub app, if using GitHub I have valid…

---

## [Something broke ca. 25 days ago. How can I find out what exactly?](https://community.codecov.com/t/something-broke-ca-25-days-ago-how-can-i-find-out-what-exactly/4020)

<div class="topic-metadata">

**Author:** [@GenieTim](https://community.codecov.com/u/GenieTim)\
**Replies:** 4\
**Last updated:** [January 16, 2023, 8:41pm UTC](https://community.codecov.com/t/something-broke-ca-25-days-ago-how-can-i-find-out-what-exactly/4020 "2023-01-16T20:41:21Z")

</div>

Description A month ago, my codecov setup was working properly. It includes both C++ tests (with CMake, Catch2, gcov) and Python tests. In a commit 25 days ago, that did not include any changes to CI or CMake or gcov o…

---

## [Unexpected status check for the deletion of code](https://community.codecov.com/t/unexpected-status-check-for-the-deletion-of-code/3785)

<div class="topic-metadata">

**Author:** [@JasonZhongZexin](https://community.codecov.com/u/JasonZhongZexin)\
**Replies:** 1\
**Last updated:** [August 11, 2022, 3:56am UTC](https://community.codecov.com/t/unexpected-status-check-for-the-deletion-of-code/3785 "2022-08-11T03:56:25Z")

</div>

Description In one of our code changes, we received a failed status check. According to the coverage report, the test covers 100% of the changes, but the status check of Codecov/project is still set to fail on our GitHub…

---

## [Gcov coverage reports were not found when migrating from codecov/codecov-action@v1 to codecov/codecov-action@v2](https://community.codecov.com/t/gcov-coverage-reports-were-not-found-when-migrating-from-codecov-codecov-action-v1-to-codecov-codecov-action-v2/3273)

<div class="topic-metadata">

**Author:** [@AenBleidd](https://community.codecov.com/u/AenBleidd)\
**Replies:** 30\
**Last updated:** [April 26, 2022, 10:36am UTC](https://community.codecov.com/t/gcov-coverage-reports-were-not-found-when-migrating-from-codecov-codecov-action-v1-to-codecov-codecov-action-v2/3273 "2022-04-26T10:36:53Z")

</div>

Codecov report uploader 0.1.5 \[2021-10-13T15:30:53.637Z\] \['info'\] =\> Project root located at: /home/runner/work/boinc/boinc \[2021-10-13T15:30:53.640Z\] \['info'\] -\> No token specified or token is empty \[2021-10-13T15:30:…

---

## [Flags doesnt seem to work with codecov tool and gcov upload](https://community.codecov.com/t/flags-doesnt-seem-to-work-with-codecov-tool-and-gcov-upload/3522)

<div class="topic-metadata">

**Author:** [@Wayonb](https://community.codecov.com/u/Wayonb)\
**Replies:** 7\
**Last updated:** [April 5, 2022, 2:37pm UTC](https://community.codecov.com/t/flags-doesnt-seem-to-work-with-codecov-tool-and-gcov-upload/3522 "2022-04-05T14:37:36Z")

</div>

Description I am using the new codecov uploader tool and it works great for most of my use cases except for cpp. We have a monorepo setup with Python, Javascript and cpp package and using Flags to upload code coverage f…

---

## [Root of the sunburst graph on app.codecov.io](https://community.codecov.com/t/root-of-the-sunburst-graph-on-app-codecov-io/3276)

<div class="topic-metadata">

**Author:** [@Morwenn](https://community.codecov.com/u/Morwenn)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 11:20am UTC](https://community.codecov.com/t/root-of-the-sunburst-graph-on-app-codecov-io/3276 "2021-10-14T11:20:21Z")

</div>

Hi everyone. First of all thanks for the great tool, it’s been really useful so far. I’m opening this issue because I have been unable to pick the root of the coverage in the sunburst graph of app.codecov.io while it wo…

---

## [Coverage for a specific file is shown line-by-line in commit view but not in Overview page](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145)

<div class="topic-metadata">

**Author:** [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Replies:** 8\
**Last updated:** [August 30, 2021, 3:00pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145 "2021-08-30T15:00:55Z")

</div>

Description I want to see the line-by-line coverage for the one covered file in \<repo-root\>/tests and it shows up exactly as expected when I’m looking at a specific commit (I love the UI by the way, great job). However w…

---

## [Github actions: upload fails no matter what I do](https://community.codecov.com/t/github-actions-upload-fails-no-matter-what-i-do/3140)

<div class="topic-metadata">

**Author:** [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 8:23pm UTC](https://community.codecov.com/t/github-actions-upload-fails-no-matter-what-i-do/3140 "2021-08-18T20:23:09Z")

</div>

Description I’m trying to setup Codecov for the first time. I followed the instructions to set it up in the GitHub Marketplace but ran into the following issues: It doesn’t find my token. I currently have that line co…

---

## [Region based codecoverage (llvm-cov export)](https://community.codecov.com/t/region-based-codecoverage-llvm-cov-export/2439)

<div class="topic-metadata">

**Author:** [@JulianSchmid](https://community.codecov.com/u/JulianSchmid)\
**Replies:** 7\
**Last updated:** [July 6, 2021, 7:47pm UTC](https://community.codecov.com/t/region-based-codecoverage-llvm-cov-export/2439 "2021-07-06T19:47:07Z")

</div>

Summary It would be great if codecov would support the upload of llvm region based coverage json files that gets generated by llvm-cov export ( llvm-cov - emit coverage information — LLVM 16.0.0git documentation ). At t…

---

## [Changed name for private repo and it no longer uploads](https://community.codecov.com/t/changed-name-for-private-repo-and-it-no-longer-uploads/2566)

<div class="topic-metadata">

**Author:** [@chris-calo](https://community.codecov.com/u/chris-calo)\
**Replies:** 3\
**Last updated:** [February 23, 2021, 3:57pm UTC](https://community.codecov.com/t/changed-name-for-private-repo-and-it-no-longer-uploads/2566 "2021-02-23T15:57:06Z")

</div>

Description Since changing the repository name, I haven’t been able to successfully complete an upload via Codecov (however, I’m not sure if this related to the issue). I’ve confirmed that the access token is correct and…

---

## [Inconsistent partially covered lines](https://community.codecov.com/t/inconsistent-partially-covered-lines/2527)

<div class="topic-metadata">

**Author:** [@nekoffski](https://community.codecov.com/u/nekoffski)\
**Replies:** 2\
**Last updated:** [February 4, 2021, 3:55pm UTC](https://community.codecov.com/t/inconsistent-partially-covered-lines/2527 "2021-02-04T15:55:23Z")

</div>

Hi! I got undermentioned codecov raport which I’m confused about: What does it mean that return statement is partially covered? It happens also for other lines e.g 2 consecutive lines (like variable declaration) has…

---

## [LCOV\_EXCL\_START not working in coverage reports](https://community.codecov.com/t/lcov-excl-start-not-working-in-coverage-reports/2153)

<div class="topic-metadata">

**Author:** [@jwhui](https://community.codecov.com/u/jwhui)\
**Replies:** 9\
**Last updated:** [December 7, 2020, 3:10pm UTC](https://community.codecov.com/t/lcov-excl-start-not-working-in-coverage-reports/2153 "2020-12-07T15:10:26Z")

</div>

Please check the troubleshooting guide before creating a ticket. Description Code that is wrapped with LCOV\_EXCL\_START/LCOV\_EXCL\_STOP is being reported as red (not covered). See spinel\_command\_to\_cstr(): Codecov open…

---

## [Help debugging 'There was an error processing coverage reports'](https://community.codecov.com/t/help-debugging-there-was-an-error-processing-coverage-reports/1984)

<div class="topic-metadata">

**Author:** [@devjgm](https://community.codecov.com/u/devjgm)\
**Replies:** 3\
**Last updated:** [September 22, 2020, 9:57pm UTC](https://community.codecov.com/t/help-debugging-there-was-an-error-processing-coverage-reports/1984 "2020-09-22T21:57:03Z")

</div>

Please check the troubleshooting guide before creating a ticket. Description I’m using bazel 3.5.0 to generate code coverage.dat files for my C++ build. The coverage.dat files seem to be in lcov format. I’m using the b…

---

## [Sudden significant coverage drop](https://community.codecov.com/t/sudden-significant-coverage-drop/1610)

<div class="topic-metadata">

**Author:** [@lukaszstolarczuk](https://community.codecov.com/u/lukaszstolarczuk)\
**Replies:** 8\
**Last updated:** [July 14, 2020, 2:34pm UTC](https://community.codecov.com/t/sudden-significant-coverage-drop/1610 "2020-07-14T14:34:39Z")

</div>

Description Recently the coverage has significantly dropped on my repo (cpp code), even though the last changes we’ve merged was related to docs (which are excluded from the coverage scan :wink: ). You can see the drop i…

---

## [Why are my coverage statistics empty for the source files that my tests actually test?](https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696)

<div class="topic-metadata">

**Author:** [@CiaranWelsh](https://community.codecov.com/u/CiaranWelsh)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 8:55am UTC](https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696 "2020-07-14T08:55:09Z")

</div>

I’m trying to setup codecov in my (C/C++ project)\[GitHub - sys-bio/libOmexMeta: libOmexMeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for bios…

---

## [/dev/fd/63: line 1668: "\[: 0+1: integer expression expected" && "curl: (3) \<url\> malformed"](https://community.codecov.com/t/dev-fd-63-line-1668-0-1-integer-expression-expected-curl-3-url-malformed/1709)

<div class="topic-metadata">

**Author:** [@nicolapedrocchi](https://community.codecov.com/u/nicolapedrocchi)\
**Replies:** 9\
**Last updated:** [July 10, 2020, 9:51pm UTC](https://community.codecov.com/t/dev-fd-63-line-1668-0-1-integer-expression-expected-curl-3-url-malformed/1709 "2020-07-10T21:51:06Z")

</div>

Description I have codecov integrated with Travis. The package takes inspiration from GitHub - mikeferguson/code\_coverage: ROS package to run coverage testing The gcov is run by using the cmake extension from GitHub - m…

---

## [Set option to calculate coverage as (h + p) / (h + p + m)](https://community.codecov.com/t/set-option-to-calculate-coverage-as-h-p-h-p-m/1424)

<div class="topic-metadata">

**Author:** [@madisetti](https://community.codecov.com/u/madisetti)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 12:47am UTC](https://community.codecov.com/t/set-option-to-calculate-coverage-as-h-p-h-p-m/1424 "2020-06-19T00:47:50Z")

</div>

Language C++ Description I have a project that uses macros that show up as partial hits on execution. I like the idea of including branching information, but it creates a -10% coverage difference. Ideally, I’d like to re…

---

## [Code coverage Report failure](https://community.codecov.com/t/code-coverage-report-failure/1287)

<div class="topic-metadata">

**Author:** [@Axel13fr](https://community.codecov.com/u/Axel13fr)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 2:18pm UTC](https://community.codecov.com/t/code-coverage-report-failure/1287 "2020-05-07T14:18:05Z")

</div>

Description I’m building my C++ code on Travis :Travis CI I tried the suggested fixes but I still get There was an error processing coverage reports. My coverage.info file looks good to me (Travis CI) and I’ve tried th…

---

## [Codecov misreporting coverage](https://community.codecov.com/t/codecov-misreporting-coverage/1226)

<div class="topic-metadata">

**Author:** [@DX-MON](https://community.codecov.com/u/DX-MON)\
**Replies:** 1\
**Last updated:** [April 17, 2020, 1:38pm UTC](https://community.codecov.com/t/codecov-misreporting-coverage/1226 "2020-04-17T13:38:14Z")

</div>

Description We have two implementations of a type called fd\_t - one is a simple RAII wrapper and the other is based around interface inheritance and implementation to allow it to be used more generically at a cost (the v…

---

## [Codecov misreporting coverage and I need some help](https://community.codecov.com/t/codecov-misreporting-coverage-and-i-need-some-help/1248)

<div class="topic-metadata">

**Author:** [@DX-MON](https://community.codecov.com/u/DX-MON)\
**Replies:** 1\
**Last updated:** [April 17, 2020, 1:36pm UTC](https://community.codecov.com/t/codecov-misreporting-coverage-and-i-need-some-help/1248 "2020-04-17T13:36:42Z")

</div>

Cross-posted from Bug Fixes as no replies after several days. Description We have two implementations of a type called fd\_t - one is a simple RAII wrapper and the other is based around interface inheritance and implemen…

---

## [Can see report contents in CircleCI but Codecov shows "There was an error in processing reports"](https://community.codecov.com/t/can-see-report-contents-in-circleci-but-codecov-shows-there-was-an-error-in-processing-reports/1210)

<div class="topic-metadata">

**Author:** [@php1ic](https://community.codecov.com/u/php1ic)\
**Replies:** 1\
**Last updated:** [April 9, 2020, 10:27am UTC](https://community.codecov.com/t/can-see-report-contents-in-circleci-but-codecov-shows-there-was-an-error-in-processing-reports/1210 "2020-04-09T10:27:16Z")

</div>

Description I can output the contents of the created report with lcov --list coverage.info in the runner on circleCI, and the upload to Codecov looks to finish without error, but the report on Codecov has the message “Th…

---

## [Missing documentation for C++ branch coverage](https://community.codecov.com/t/missing-documentation-for-c-branch-coverage/898)

<div class="topic-metadata">

**Author:** [@alexjurkiewicz](https://community.codecov.com/u/alexjurkiewicz)\
**Replies:** 3\
**Last updated:** [January 17, 2020, 1:57pm UTC](https://community.codecov.com/t/missing-documentation-for-c-branch-coverage/898 "2020-01-17T13:57:10Z")

</div>

Description I am testing Codecov with a C++ project, and looking for help configuring branch coverage support. The default codecov.yml includes this config: parsers: gcov: branch\_detection: conditional: yes…

---

## [Is there any support for excluding sections of code](https://community.codecov.com/t/is-there-any-support-for-excluding-sections-of-code/395)

<div class="topic-metadata">

**Author:** [@amiller-isp](https://community.codecov.com/u/amiller-isp)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 9:52pm UTC](https://community.codecov.com/t/is-there-any-support-for-excluding-sections-of-code/395 "2019-07-29T21:52:29Z")

</div>

Description We are using the codecov.sh script to collect gcov reports for our C++ codebase. I finally got this working but now want to exclude some specific lines/sections of code. Typically this is done by adding comme…

---

## [Codecov.sh does not work for GN/NInja builds](https://community.codecov.com/t/codecov-sh-does-not-work-for-gn-ninja-builds/396)

<div class="topic-metadata">

**Author:** [@amiller-isp](https://community.codecov.com/u/amiller-isp)\
**Replies:** 0\
**Last updated:** [July 28, 2019, 5:04pm UTC](https://community.codecov.com/t/codecov-sh-does-not-work-for-gn-ninja-builds/396 "2019-07-28T17:04:40Z")

</div>

So I spent a lot of time trying to get codecov.sh to work for my gn/ninja build and was eventually forced to change the script. Ninja runs compilation steps from the output directory. gcov needs to run in the same direct…

---

## [Trouble understanding why some non-branch lines are yellow in review](https://community.codecov.com/t/trouble-understanding-why-some-non-branch-lines-are-yellow-in-review/230)

<div class="topic-metadata">

**Author:** [@jeking3](https://community.codecov.com/u/jeking3)\
**Replies:** 0\
**Last updated:** [May 31, 2019, 1:06pm UTC](https://community.codecov.com/t/trouble-understanding-why-some-non-branch-lines-are-yellow-in-review/230 "2019-05-31T13:06:36Z")

</div>

Description A line containing “delete” is marked yellow and I don’t understand why. It isn’t a branch and it is surrounded by green so it must have executed. Repository Job: Travis CI Codecov: Codecov
