Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile errors when comparing pointers. #699

Merged
merged 12 commits into from
Oct 2, 2022
Merged

Fix compile errors when comparing pointers. #699

merged 12 commits into from
Oct 2, 2022

Conversation

SpriteOvO
Copy link
Contributor

@SpriteOvO SpriteOvO commented Sep 27, 2022

Description

Since v2.4.9, pointers comparison will trigger a compile error inside doctest regarding pointer types. You can find reproduction examples and error messages in the issues referenced below.

This PR fixes that problem.

GitHub Issues

Fixes #665, Fixes #675, Fixes #686

@codecov
Copy link

codecov bot commented Sep 27, 2022

Codecov Report

Merging #699 (02c6bed) into dev (e331f32) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #699   +/-   ##
=======================================
  Coverage   92.19%   92.19%           
=======================================
  Files           2        2           
  Lines        2127     2127           
=======================================
  Hits         1961     1961           
  Misses        166      166           
Impacted Files Coverage Δ
doctest/parts/doctest_fwd.h 97.70% <100.00%> (ø)
doctest/parts/doctest.cpp 91.70% <0.00%> (ø)

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

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan

Verified

This commit was signed with the committer’s verified signature.
Saalvage Stefan
@Saalvage
Copy link
Member

Saalvage commented Oct 2, 2022

Thank you very much for your contribution!

@Saalvage Saalvage merged commit 0c04c96 into doctest:dev Oct 2, 2022
@SpriteOvO SpriteOvO deleted the fix-ptr-cmp branch October 4, 2022 20:31
onqtam pushed a commit that referenced this pull request Feb 27, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
* Explicitly convert pointer in `filldata<T*>::fill`

* Add regression test

* Increase standard compliance

* Collect test output

* Collect test output

* Fix warnings

* Add GCC workaround

* Update doctest.h

* Move __extension__

* Use different workaround

* Add missing const qualifier

Co-authored-by: Salvage <29021710+Saalvage@users.noreply.github.com>
moui0 added a commit to moui0/archriscv-packages that referenced this pull request Oct 11, 2023
felixonmars pushed a commit to felixonmars/archriscv-packages that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants