-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add include to MRP analytic delegate to compile #39271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add include to MRP analytic delegate to compile #39271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request addresses a compiler error by adding a necessary include directive. The change is clear, concise, and directly solves the reported issue. The PR description and testing validation are appreciated.
Summary of Findings
- Code Correctness: The added
#include <system/SystemClock.h>correctly resolves the 'undeclared identifier System' compiler error, likely due to the usage of types likeSystem::Clock::TimestamporSystem::Clock::Milliseconds64withinReliableMessageAnalyticsDelegate.hor its associated data structures (e.g.,TransmitEvent). This adheres to the C++ best practice of including headers for all types used directly by a file. - Maintainability: The change is minimal and improves the self-containedness of the header file by explicitly declaring its dependencies. The placement of the new include directive is appropriate.
Merge Readiness
The pull request appears to be in good shape and directly addresses a compilation issue. The change is correct and well-justified. Based on this review, the code seems ready for merging. However, as an AI reviewer, I am not authorized to approve pull requests; please ensure it undergoes any further required review processes before merging.
|
Fast tracking trivial change. |
|
|
||
| #include <lib/core/DataModelTypes.h> | ||
| #include <lib/core/NodeId.h> | ||
| #include <system/SystemClock.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking comment. https://github.com/project-chip/connectedhomeip/pull/39253/files fixes the issues as well
|
PR #39271: Size comparison from cac6abc to e7cd28f Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Introduced a compiler error that shows up externally in #39201. After addressing a nit comment I forget to text this externally and ended up breaking myself on this effort
Testing
error: use of undeclared identifier 'System'is resolved