Skip to content

[CODE HEALTH] Fix clang-tidy macro to enum warnings#3922

Merged
marcalff merged 2 commits intoopen-telemetry:mainfrom
marcalff:tidy_macro_to_enum
Mar 11, 2026
Merged

[CODE HEALTH] Fix clang-tidy macro to enum warnings#3922
marcalff merged 2 commits intoopen-telemetry:mainfrom
marcalff:tidy_macro_to_enum

Conversation

@marcalff
Copy link
Member

@marcalff marcalff commented Mar 11, 2026

Fixes # (issue)

Changes

Please provide a brief description of the changes here.

  • Fix clang-tidy cppcoreguidelines-macro-to-enum warnings
  • Remove dead code related to MAX_LOGGER_COUNT

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

@marcalff marcalff marked this pull request as ready for review March 11, 2026 20:14
@marcalff marcalff requested a review from a team as a code owner March 11, 2026 20:14
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.06%. Comparing base (739862d) to head (92ecd12).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3922   +/-   ##
=======================================
  Coverage   90.06%   90.06%           
=======================================
  Files         226      226           
  Lines        7223     7223           
=======================================
  Hits         6505     6505           
  Misses        718      718           
Files with missing lines Coverage Δ
sdk/src/logs/logger_provider.cc 89.14% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

# define OPENTELEMETRY_ABI_VERSION_NO 1
#endif

// NOLINTBEGIN(cppcoreguidelines-macro-to-enum)
Copy link
Contributor

Choose a reason for hiding this comment

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

Include the above OPENTELEMETRY_ABI_VERSION_NO definition in the // NOLINTBEGIN section too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@marcalff marcalff merged commit bef0b90 into open-telemetry:main Mar 11, 2026
68 checks passed
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