Repository navigation
Fix tidy warnings that cause CI failures - #83
Closed
edwardalee wants to merge 7 commits into
Closed
edwardalee wants to merge 7 commits into
edwardalee wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the clang-tidy cleanup across the runtime and examples.
No open issues 🎉
What changed in this PR
Addresses clang-tidy warnings causing CI failures across the reactor runtime and examples.
Changes:
- Replaces single-mutex
std::lock_guardinstances withstd::scoped_lock. - Adds explicit return types to callback and predicate lambdas.
- Converts
ConnectionTypeto a scoped enum.
| File | Description |
|---|---|
lib/scheduler.cc |
Updates mutex guards and predicate return types. |
lib/port.cc |
Adds an explicit return type to composed callbacks. |
lib/multiport.cc |
Adds an explicit return type to the set callback. |
lib/environment.cc |
Updates the shutdown guard and startup lambda. |
include/reactor-cpp/time_barrier.hh |
Adds an explicit boolean return type to the wait predicate. |
include/reactor-cpp/semaphore.hh |
Updates the release guard and acquire predicate. |
include/reactor-cpp/multiport.hh |
Adds an explicit return type to the cleanup callback. |
include/reactor-cpp/impl/action_impl.hh |
Updates guards for asynchronous action scheduling. |
include/reactor-cpp/connection.hh |
Adds explicit return types to connection callbacks. |
include/reactor-cpp/connection_properties.hh |
Makes ConnectionType a scoped enum. |
examples/power_train/main.cc |
Adds explicit return types to reaction lambdas. |
examples/ports/main.cc |
Adds explicit return types to reaction lambdas. |
examples/hello/main.cc |
Adds explicit return types to reaction lambdas. |
examples/count/main.cc |
Adds explicit return types to reaction lambdas. |
Review effort: Balanced
Collaborator
Author
|
I've disabled treating warnings as errors in the benchmarks-lingua-franca repo, so these changes are no longer necessary. Anyway, they seem to result in the tests timing out. |
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.
No description provided.