-
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
Rename ArraySize() to MATTER_ARRAY_SIZE() #37660
Conversation
a93169e
to
f933cc4
Compare
PR #37660: Size comparison from 38cc24b to 8204eee Full report (11 builds for cc13x4_26x4, cc32xx, qpg, stm32, tizen)
|
PR #37660: Size comparison from 38cc24b to b6c7be2 Full report (28 builds for cc13x4_26x4, cc32xx, cyw30739, psoc6, qpg, stm32, tizen)
|
b6c7be2
to
ad4e7ed
Compare
PR #37660: Size comparison from 0551d0a to 1187b7f Full report (70 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, psoc6, qpg, stm32, tizen)
|
PR #37660: Size comparison from 40979b4 to 27b8cf9 Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
|
PR #37660: Size comparison from 72bd391 to a20d0ac Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #37660: Size comparison from 72bd391 to 8b5b7f5 Full report (63 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, psoc6, qpg, stm32, telink, tizen)
|
PR #37660: Size comparison from 72bd391 to 4ee8dea Full report (84 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
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.
Author of #30140 had come across the symbol collision, I think this would fix the root. Thank you!
PR #37660: Size comparison from 0d6b2fb to 9ee7718 Full report (84 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Bypassing CLANG-Tidy here - this is a rename update and it just so happens that we touch a file that has new errors (because we do not check all files on all PRS as that is too slow). I cannot see an obvious reason for its complains. |
* Rename ArraySize() to MATTER_ARRAY_SIZE * Updated usages of ArraySize() to MATTER_ARRAY_SIZE() * Restyled by clang-format * Guard with #ifndef * fix recently introduced usage in chime * fix typo --------- Co-authored-by: Restyled.io <commits@restyled.io>
* Rename ArraySize() to MATTER_ARRAY_SIZE * Updated usages of ArraySize() to MATTER_ARRAY_SIZE() * Restyled by clang-format * Guard with #ifndef * fix recently introduced usage in chime * fix typo --------- Co-authored-by: Restyled.io <commits@restyled.io>
* Rename ArraySize() to MATTER_ARRAY_SIZE * Updated usages of ArraySize() to MATTER_ARRAY_SIZE() * Restyled by clang-format * Guard with #ifndef * fix recently introduced usage in chime * fix typo --------- Co-authored-by: Restyled.io <commits@restyled.io>
This PR renames ArraySize() to MATTER_ARRAY_SIZE().
ArraySize() is a macro, so it should be in all caps to not be confused with a function. Also, it is a common name. It can cause symbol clashes very easily.
Testing
Pure renaming. Relying on CI to verify build failures.