Repository navigation
Fix clang-tidy findings and re-enable on CI - #498
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses remaining clang-tidy findings and re-enables the CI clang-tidy job by fixing the source path in ci/analyze.sh.
Changes:
- Update tests and small library code paths to satisfy
clang-tidy(e.g., optional checks, tuple utilities, iterator arithmetic). - Add/adjust clang-tidy suppressions/configuration and a small API addition (
expected::has_value()). - Fix CI clang-tidy invocation path; add a Rocky 8 CI Dockerfile.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| libbroker/broker/topic.hh | Adds targeted NOLINT suppression around topic::compare. |
| libbroker/broker/status.test.cc | Reworks optional/context assertions to avoid dereference and satisfy clang-tidy. |
| libbroker/broker/peering.test.cc | Tweaks macro helper lambda parameter passing to reduce copies / satisfy checks. |
| libbroker/broker/logger.cc | Switches locking primitive to std::scoped_lock. |
| libbroker/broker/internal/type_id.hh | Removes broad NOLINT suppression around an atom-alias macro. |
| libbroker/broker/internal/channel.test.cc | Fixes numeric conversions/iterator arithmetic flagged by clang-tidy. |
| libbroker/broker/hub.test.cc | Updates optional handling in subscriber tests (introduces a logic issue). |
| libbroker/broker/expected.hh | Adds has_value() convenience observer. |
| libbroker/broker/error.test.cc | Reworks optional/context access patterns similarly to other tests. |
| libbroker/broker/data.test.cc | Adds explanation for redundant CHECK(opt) && opt pattern; updates tests accordingly. |
| libbroker/broker/builder.hh | Uses std::tuple_size_v to satisfy modern C++ style checks. |
| libbroker/broker/alm/routing_table.test.cc | Removes unused variable; makes loop variable const-ref. |
| libbroker/broker/alm/multipath.test.cc | Removes unused variable; adds an extra comparison check; makes loop variable const-ref. |
| libbroker/broker/address.cc | Refactors helper into anonymous namespace and simplifies bit math. |
| ci/rocky-8/Dockerfile | Adds new Rocky 8 build image definition. |
| ci/analyze.sh | Updates run-clang-tidy target path to $PWD/libbroker. |
| .clang-tidy | Disables additional checks to reduce findings/noise. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Neverlord
force-pushed
the
topic/neverlord/reintegrate-clang-tidy
branch
from
January 25, 2026 16:24
ebc8da4 to
ee1acc8
Compare
Neverlord
force-pushed
the
topic/neverlord/reintegrate-clang-tidy
branch
from
January 25, 2026 18:53
737ee86 to
ff9a16d
Compare
The `performance-unnecessary-value-param` emits tons of warnings, suggesting to pass iterators as `const&`. This is contrary to the general guidance to pass small objects such as iterators by value. Since there are so many false positives, disabling the check altogether makes more sense than suppressing each one individually.
Neverlord
marked this pull request as ready for review
January 25, 2026 21:14
timwoj
approved these changes
Jan 26, 2026
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.
Fix remaining
clang-tidyfindings and re-enable on CI (by fixing the path to the sources inci/analyze.sh).