Skip to content

Add inline modifier to avoid build problems#183

Merged
dsarmany merged 1 commit intodevelopfrom
bugfix/add-inline-to-deductions
Mar 17, 2026
Merged

Add inline modifier to avoid build problems#183
dsarmany merged 1 commit intodevelopfrom
bugfix/add-inline-to-deductions

Conversation

@dsarmany
Copy link
Copy Markdown
Contributor

Description

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

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 addresses linker/build issues caused by non-inline function definitions living in header files within the mars2grib “deductions” backend, by marking those header-defined functions as inline.

Changes:

  • Mark wave frequency grid helper functions as inline in waveFrequencyGrid.h.
  • Mark wave direction grid helper functions as inline in waveDirectionGrid.h.
  • Mark additional header-defined utilities as inline (pvArray.h, detail/timeUtils.h, bitsPerValue.h) to prevent multiple-definition link errors.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/metkit/mars2grib/backend/deductions/waveFrequencyGrid.h Adds inline to header-defined wave frequency grid helpers to avoid ODR/linker issues.
src/metkit/mars2grib/backend/deductions/waveDirectionGrid.h Adds inline to header-defined wave direction grid helpers to avoid ODR/linker issues.
src/metkit/mars2grib/backend/deductions/pvArray.h Adds inline to a header-defined PV lookup helper to avoid multiple definitions across TUs.
src/metkit/mars2grib/backend/deductions/detail/timeUtils.h Adds inline to header-defined date/time conversion helpers to avoid multiple definitions.
src/metkit/mars2grib/backend/deductions/bitsPerValue.h Adds inline to a header-defined bits-per-value default mapping helper to avoid multiple definitions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dsarmany dsarmany force-pushed the bugfix/add-inline-to-deductions branch from 3a1cdf4 to 87efe4a Compare March 16, 2026 12:38
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 37.50000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.61%. Comparing base (838d1bc) to head (87efe4a).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...t/mars2grib/backend/deductions/waveDirectionGrid.h 0.00% 2 Missing ⚠️
...t/mars2grib/backend/deductions/waveFrequencyGrid.h 0.00% 2 Missing ⚠️
src/metkit/mars2grib/backend/deductions/pvArray.h 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #183   +/-   ##
========================================
  Coverage    62.61%   62.61%           
========================================
  Files          303      303           
  Lines        11554    11554           
  Branches      1029     1028    -1     
========================================
  Hits          7234     7234           
  Misses        4320     4320           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@dsarmany dsarmany merged commit 87efe4a into develop Mar 17, 2026
192 checks passed
@dsarmany dsarmany deleted the bugfix/add-inline-to-deductions branch March 17, 2026 16:23
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.

4 participants