Skip to content

A more inclusive handling of Catch2's use of __COUNTER__#478

Merged
greenc-FNAL merged 3 commits intomainfrom
maintenance/catch-avoid-__COUNTER__
Apr 1, 2026
Merged

A more inclusive handling of Catch2's use of __COUNTER__#478
greenc-FNAL merged 3 commits intomainfrom
maintenance/catch-avoid-__COUNTER__

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

No description provided.

@greenc-FNAL greenc-FNAL requested a review from knoepfel March 31, 2026 17:05
Copy link
Copy Markdown
Member

@knoepfel knoepfel left a comment

Choose a reason for hiding this comment

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

One question below, @greenc-FNAL

Comment thread CMakeLists.txt
Copilot AI review requested due to automatic review settings April 1, 2026 14:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the project’s Catch2 integration to avoid relying on __COUNTER__ (a non-standard compiler extension) by propagating CATCH_CONFIG_NO_COUNTER through Catch2’s CMake target usage requirements, and removes the previous Clang-specific warning suppression.

Changes:

  • Bump Catch2 from v3.10.0 to v3.13.0 via FetchContent.
  • Add CATCH_CONFIG_NO_COUNTER as an INTERFACE compile definition on Catch2::Catch2.
  • Remove the Clang>=22-specific -Wno-c2y-extensions workaround.

Comment thread CMakeLists.txt Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #478      +/-   ##
==========================================
+ Coverage   85.40%   85.43%   +0.02%     
==========================================
  Files         144      144              
  Lines        3591     3591              
  Branches      615      615              
==========================================
+ Hits         3067     3068       +1     
  Misses        315      315              
+ Partials      209      208       -1     
Flag Coverage Δ
unittests 85.43% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b642a4b...945b106. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI requested a review from knoepfel April 1, 2026 15:15
@knoepfel knoepfel enabled auto-merge (squash) April 1, 2026 15:27
@knoepfel knoepfel disabled auto-merge April 1, 2026 15:30
@greenc-FNAL greenc-FNAL merged commit 64e5e43 into main Apr 1, 2026
38 checks passed
@knoepfel knoepfel deleted the maintenance/catch-avoid-__COUNTER__ branch April 2, 2026 14:42
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.

5 participants