-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Re-enable clang-tidy
check for enum value range validation
#32289
Conversation
PR #32289: Size comparison from ef8ee32 to 5baea9e Increases (44 builds for bl602, bl702, bl702l, cc13x4_26x4, efr32, esp32, k32w, linux, nrfconnect, psoc6, qpg, stm32, telink)
Decreases (4 builds for bl702l, efr32, linux)
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
|
PR #32289: Size comparison from ef8ee32 to 400a39b Increases above 0.2%:
Increases (42 builds for bl602, bl702, cc13x4_26x4, cyw30739, efr32, esp32, linux, nrfconnect, psoc6, stm32, telink)
Decreases (13 builds for bl602, bl702, bl702l, k32w, linux, qpg)
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
|
PR #32289: Size comparison from ef8ee32 to 7285802 Increases above 0.2%:
Increases (42 builds for bl602, bl702, cc13x4_26x4, cyw30739, efr32, esp32, linux, nrfconnect, psoc6, stm32, telink)
Decreases (13 builds for bl602, bl702, bl702l, k32w, linux, qpg)
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
|
PR #32289: Size comparison from 44ca395 to 69644de Increases (42 builds for bl602, bl702, bl702l, cc13x4_26x4, efr32, esp32, k32w, linux, nrfconnect, psoc6, qpg, stm32, telink)
Decreases (5 builds for efr32, linux)
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
|
@@ -391,6 +391,8 @@ void ICDManager::SetKeepActiveModeRequirements(KeepActiveFlags flag, bool state) | |||
{ | |||
assertChipStackLockedByCurrentThread(); | |||
|
|||
// TODO: fix lint: https://github.com/project-chip/connectedhomeip/issues/32249 |
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.
That dos not look like the right link.
@@ -511,6 +513,9 @@ void ICDManager::OnActiveRequestWithdrawal(KeepActiveFlags request) | |||
{ | |||
// Only 1 request per type (kCommissioningWindowOpen, kFailSafeArmed) | |||
// remove requirement directly | |||
|
|||
// TODO: fix lint: https://github.com/project-chip/connectedhomeip/issues/32249 |
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.
Wrong link?
@@ -2692,6 +2692,8 @@ static void TestVIDPID_StringExtraction(nlTestSuite * inSuite, void * inContext) | |||
{ DNAttrType::kMatterPID, ByteSpan(reinterpret_cast<const uint8_t *>(sTestMatterAttribute14), strlen(sTestMatterAttribute14)), false, false, chip::VendorId::NotSpecified, 0, CHIP_ERROR_WRONG_CERT_DN }, | |||
// Common Name (CN) VID/PID encoding examples: | |||
{ DNAttrType::kCommonName, ByteSpan(reinterpret_cast<const uint8_t *>(sTestCNAttribute01), strlen(sTestCNAttribute01)), true, false, chip::VendorId::TestVendor1, 0, CHIP_NO_ERROR }, | |||
// TODO: fix lint: https://github.com/project-chip/connectedhomeip/issues/32249 |
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.
Wrong link?
@@ -122,6 +122,9 @@ TLVType TLVReader::GetType() const | |||
return kTLVType_FloatingPointNumber; | |||
if (elemType == TLVElementType::NotSpecified || elemType >= TLVElementType::Null) | |||
return static_cast<TLVType>(elemType); | |||
|
|||
// TODO: fix lint: https://github.com/project-chip/connectedhomeip/issues/32249 |
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.
All these issue links are wrong....
In various places of our code we seem to rely on enums being used as a bitmap (and this results in out of range values). Not fixing this for now. |
Some minimal fixes (e.g. adding equality operator for BitFlags) and in many case I just flagged things as nolint so that we can iterate over fixes.
enum checks also somehow made
cast through void
detection much stricter, so I updated all the instances of that in linux platform (all DBUS casts seem to go through void, and I found no good way to mass-disable without disabling entire platform from all tidy checks)