[CODE HEALTH] Fix clang tidy warnings in API common and context#3948
Merged
marcalff merged 8 commits intoopen-telemetry:mainfrom Mar 20, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3948 +/- ##
==========================================
+ Coverage 90.09% 90.09% +0.01%
==========================================
Files 227 227
Lines 7250 7251 +1
==========================================
+ Hits 6531 6532 +1
Misses 719 719
🚀 New features to boost your workflow:
|
Merged
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributes to #2053
Changes
portability-template-virtual-member-functioncheck (gcc, clang, and msvc builds are tested in ci)opentelemetry-cpp/api/include/opentelemetry/common/key_value_iterable.h (2 warnings)
cppcoreguidelines-special-member-functionscppcoreguidelines-special-member-functionsopentelemetry-cpp/api/include/opentelemetry/common/key_value_iterable_view.h (3 warnings)
portability-template-virtual-member-functionportability-template-virtual-member-functionbugprone-return-const-ref-from-parameteropentelemetry-cpp/api/include/opentelemetry/common/kv_properties.h (3 warnings)
cppcoreguidelines-use-default-member-initcppcoreguidelines-special-member-functionscppcoreguidelines-c-copy-assignment-signature,misc-unconventional-assign-operatoropentelemetry-cpp/api/include/opentelemetry/common/spin_lock_mutex.h (1 warnings)
cppcoreguidelines-special-member-functionsopentelemetry-cpp/api/include/opentelemetry/context/context.h (4 warnings)
cppcoreguidelines-special-member-functionscppcoreguidelines-prefer-member-initializercppcoreguidelines-prefer-member-initializercppcoreguidelines-prefer-member-initializeropentelemetry-cpp/api/include/opentelemetry/context/propagation/text_map_propagator.h (2 warnings)
cppcoreguidelines-special-member-functionscppcoreguidelines-special-member-functionsopentelemetry-cpp/api/include/opentelemetry/context/runtime_context.h (7 warnings)
cppcoreguidelines-special-member-functionscppcoreguidelines-avoid-const-or-ref-data-memberscppcoreguidelines-special-member-functionscppcoreguidelines-special-member-functionscppcoreguidelines-use-default-member-initcppcoreguidelines-use-default-member-initcppcoreguidelines-use-default-member-initFor significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes