Skip to content

Conversation

dbarker
Copy link
Member

@dbarker dbarker commented Jun 30, 2025

Contributes to #2053

Changes

Fixes clang-tidy warnings with the OTLP File component

  • cppcoreguidelines-slicing
  • cppcoreguidelines-avoid-const-or-ref-data-members
  • cppcoreguidelines-special-member-functions

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Copy link

netlify bot commented Jun 30, 2025

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 24d7bef
🔍 Latest deploy log https://app.netlify.com/projects/opentelemetry-cpp-api-docs/deploys/686304fe1b72fc00088940b7

Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.96%. Comparing base (dff39f3) to head (24d7bef).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3506   +/-   ##
=======================================
  Coverage   89.96%   89.96%           
=======================================
  Files         219      219           
  Lines        7051     7051           
=======================================
  Hits         6343     6343           
  Misses        708      708           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbarker dbarker marked this pull request as ready for review June 30, 2025 19:12
@dbarker dbarker requested a review from a team as a code owner June 30, 2025 19:12
Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

LGTM

@marcalff
Copy link
Member

According to CI, this solves only 1 warning (85 instead of 86).

To reevaluate once part 4 is merged.

@dbarker
Copy link
Member Author

dbarker commented Jun 30, 2025

According to CI, this solves only 1 warning (85 instead of 86).

To reevaluate once part 4 is merged.

Yes. It may be due to using an older version of clang-tidy in CI. So we won't see the satisfying drop in warnings from this but they do need to be fixed. :)

I found the warnings using the clangd extension to vscode while fixing the slicing warning. CI only reports the slicing warning for some reason.

@marcalff marcalff merged commit 3b42db5 into open-telemetry:main Jul 1, 2025
70 checks passed
@dbarker dbarker deleted the fix_clang_tidy_warnings_part_5 branch July 10, 2025 16:44
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.

2 participants