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

Remove ::boost::test_tools::tt_detail::dummy_cond #348

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

jspam
Copy link
Contributor

@jspam jspam commented Jul 8, 2022

Replace loops using it by simple do { ... } while (0) loops.
This allows static analysis tools like clang-tidy to better understand
the code and avoid false positives.

Fixes #343.

Replace loops using it by simple do { ... } while (0) loops.
This allows static analysis tools like clang-tidy to better understand
the code and avoid false positives.

Fixes #343.
Copy link

@jonesmz jonesmz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent the better part of several days fighting clang-tidy false positives caused by this.

Can this change please be merged for the next boost release?

@mborland
Copy link
Member

mborland commented Oct 4, 2024

I spent the better part of several days fighting clang-tidy false positives caused by this.

Can this change please be merged for the next boost release?

I merge in develop to kick off a CI run to validate. The changes look like they should be OK.

@mborland mborland merged commit eb0c07b into boostorg:develop Oct 4, 2024
41 checks passed
hebasto added a commit to hebasto/bitcoin that referenced this pull request Dec 5, 2024
This change switches to the latest IWYU 0.23, which is compatible with
Clang 19.

Fixed new "modernize-use-starts-ends-with" warnings.

The new "bugprone-use-after-move" warning in `result_tests.cpp` is a
false positive caused by a bug in Boost.Test versions < 1.87. This has
been addressed by introducing a local variable.
See upstream references:
 - Issue: boostorg/test#343
 - Fix: boostorg/test#348

Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
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.

clang-tidy bugprone-use-after-move false positive in BOOST_* macros
3 participants