Skip to content
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

Switch SimpleEnum to being an enum class. #12442

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

Problem

SimpleEnum is not an enum class.

Change overview

Remove it from the "legacy enums that need to not be enum class" list.

Testing

Tree compiles.

@github-actions
Copy link

github-actions bot commented Dec 1, 2021

PR #12442: Size comparison from a02bce4 to 76d586f

Decreases (1 build for linux)
platform target config section a02bce4 76d586f change % change
linux chip-tool debug (read only) 6435173 6435141 -32 -0.0
.text 5730133 5730101 -32 -0.0
Full report (22 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section a02bce4 76d586f change % change
efr32 lighting-app BRD4161A (read only) 729232 729232 0 0.0
(read/write) 119580 119580 0 0.0
.bss 117764 117764 0 0.0
.data 1812 1812 0 0.0
.text 729224 729224 0 0.0
BRD4161A+rpc (read only) 757872 757872 0 0.0
(read/write) 137884 137884 0 0.0
.bss 135964 135964 0 0.0
.data 1920 1920 0 0.0
.text 757864 757864 0 0.0
lock-app BRD4161A (read only) 703076 703076 0 0.0
(read/write) 117284 117284 0 0.0
.bss 115516 115516 0 0.0
.data 1768 1768 0 0.0
.text 703068 703068 0 0.0
window-app BRD4161A (read only) 706204 706204 0 0.0
(read/write) 117708 117708 0 0.0
.bss 115932 115932 0 0.0
.data 1776 1776 0 0.0
.text 706196 706196 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 726728 726728 0 0.0
.bss 78956 78956 0 0.0
.data 1844 1844 0 0.0
.text 640128 640128 0 0.0
lock-app k32w061+debug (read/write) 615732 615732 0 0.0
.bss 69396 69396 0 0.0
.data 1808 1808 0 0.0
.text 538728 538728 0 0.0
shell k32w061+debug (read/write) 681536 681536 0 0.0
.bss 80996 80996 0 0.0
.data 1780 1780 0 0.0
.text 592960 592960 0 0.0
linux all-clusters-app debug (read only) 1795353 1795353 0 0.0
(read/write) 125800 125800 0 0.0
.bss 53360 53360 0 0.0
.data 1104 1104 0 0.0
.data.rel.ro 66032 66032 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 560 560 0 0.0
.rodata 145717 145717 0 0.0
.text 1509394 1509394 0 0.0
bridge-app debug+rpc (read only) 1365325 1365325 0 0.0
(read/write) 71888 71888 0 0.0
.bss 35408 35408 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 29792 29792 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 118756 118756 0 0.0
.text 1145733 1145733 0 0.0
chip-tool debug (read only) 6435173 6435141 -32 -0.0
(read/write) 198512 198512 0 0.0
.bss 33704 33704 0 0.0
.data 1008 1008 0 0.0
.data.rel.ro 158216 158216 0 0.0
.dynamic 592 592 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 480 480 0 0.0
.rodata 301208 301208 0 0.0
.text 5730133 5730101 -32 -0.0
lighting-app debug+rpc (read only) 1649161 1649161 0 0.0
(read/write) 104944 104944 0 0.0
.bss 41072 41072 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 57296 57296 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 138449 138449 0 0.0
.text 1372130 1372130 0 0.0
ota-provider-app debug (read only) 1325977 1325977 0 0.0
(read/write) 70344 70344 0 0.0
.bss 37984 37984 0 0.0
.data 912 912 0 0.0
.data.rel.ro 26328 26328 0 0.0
.dynamic 592 592 0 0.0
.got 4048 4048 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 120168 120168 0 0.0
.text 1104738 1104738 0 0.0
ota-requestor-app debug (read only) 1426049 1426049 0 0.0
(read/write) 74240 74240 0 0.0
.bss 40096 40096 0 0.0
.data 976 976 0 0.0
.data.rel.ro 28040 28040 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 132080 132080 0 0.0
.text 1189458 1189458 0 0.0
shell debug (read only) 814361 814361 0 0.0
(read/write) 60232 60232 0 0.0
.bss 16872 16872 0 0.0
.data 240 240 0 0.0
.data.rel.ro 38656 38656 0 0.0
.dynamic 592 592 0 0.0
.got 3504 3504 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 83538 83538 0 0.0
.text 624738 624738 0 0.0
tv-app debug (read only) 1942337 1942337 0 0.0
(read/write) 314608 314608 0 0.0
.bss 245464 245464 0 0.0
.data 1504 1504 0 0.0
.data.rel.ro 61984 61984 0 0.0
.dynamic 592 592 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 167976 167976 0 0.0
.text 1625202 1625202 0 0.0
p6 all-clusters-app default (read/write) 2320400 2320400 0 0.0
.bss 109872 109872 0 0.0
.data 2464 2464 0 0.0
.heap 921008 921008 0 0.0
.text 1278664 1278664 0 0.0
light-app default (read/write) 2256112 2256112 0 0.0
.bss 97936 97936 0 0.0
.data 2328 2328 0 0.0
.heap 933080 933080 0 0.0
.text 1214376 1214376 0 0.0
lock-app default (read/write) 2231472 2231472 0 0.0
.bss 96592 96592 0 0.0
.data 2288 2288 0 0.0
.heap 934464 934464 0 0.0
.text 1189736 1189736 0 0.0
qpg lighting-app qpg6100+debug (read only) 498612 498612 0 0.0
(read/write) 114144 114144 0 0.0
.bss 79848 79848 0 0.0
.data 944 944 0 0.0
.text 493292 493292 0 0.0
lock-app qpg6100+debug (read only) 471216 471216 0 0.0
(read/write) 114144 114144 0 0.0
.bss 78760 78760 0 0.0
.data 896 896 0 0.0
.text 465896 465896 0 0.0
persistent-storage-app qpg6100+debug (read only) 108208 108208 0 0.0
(read/write) 114140 114140 0 0.0
.bss 36696 36696 0 0.0
.data 292 292 0 0.0
.text 102888 102888 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 780882 780882 0 0.0
bss 79896 79896 0 0.0
noinit 37160 37160 0 0.0
text 542870 542870 0 0.0

@bzbarsky-apple bzbarsky-apple force-pushed the test-enum-as-enum-class branch from 76d586f to 6adbe6c Compare December 1, 2021 23:03
@github-actions
Copy link

github-actions bot commented Dec 1, 2021

PR #12442: Size comparison from 6f3b5a0 to 6adbe6c

Decreases (1 build for linux)
platform target config section 6f3b5a0 6adbe6c change % change
linux chip-tool debug (read only) 6435173 6435141 -32 -0.0
.text 5730133 5730101 -32 -0.0
Full report (39 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 6f3b5a0 6adbe6c change % change
efr32 lighting-app BRD4161A (read only) 729232 729232 0 0.0
(read/write) 119580 119580 0 0.0
.bss 117764 117764 0 0.0
.data 1812 1812 0 0.0
.text 729224 729224 0 0.0
BRD4161A+rpc (read only) 757872 757872 0 0.0
(read/write) 137884 137884 0 0.0
.bss 135964 135964 0 0.0
.data 1920 1920 0 0.0
.text 757864 757864 0 0.0
lock-app BRD4161A (read only) 703076 703076 0 0.0
(read/write) 117284 117284 0 0.0
.bss 115516 115516 0 0.0
.data 1768 1768 0 0.0
.text 703068 703068 0 0.0
window-app BRD4161A (read only) 706204 706204 0 0.0
(read/write) 117708 117708 0 0.0
.bss 115932 115932 0 0.0
.data 1776 1776 0 0.0
.text 706196 706196 0 0.0
esp32 all-clusters-app c3devkit (read only) 839056 839056 0 0.0
(read/write) 1224850 1224850 0 0.0
.dram0.bss 58720 58720 0 0.0
.dram0.data 14028 14028 0 0.0
.flash.rodata 166856 166856 0 0.0
.flash.text 839056 839056 0 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 910499 910499 0 0.0
(read/write) 424096 424096 0 0.0
.dram0.bss 64120 64120 0 0.0
.dram0.data 34000 34000 0 0.0
.flash.rodata 194696 194696 0 0.0
.flash.text 905115 905115 0 0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 726728 726728 0 0.0
.bss 78956 78956 0 0.0
.data 1844 1844 0 0.0
.text 640128 640128 0 0.0
lock-app k32w061+debug (read/write) 615732 615732 0 0.0
.bss 69396 69396 0 0.0
.data 1808 1808 0 0.0
.text 538728 538728 0 0.0
shell k32w061+debug (read/write) 681536 681536 0 0.0
.bss 80996 80996 0 0.0
.data 1780 1780 0 0.0
.text 592960 592960 0 0.0
linux all-clusters-app debug (read only) 1795353 1795353 0 0.0
(read/write) 125800 125800 0 0.0
.bss 53360 53360 0 0.0
.data 1104 1104 0 0.0
.data.rel.ro 66032 66032 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 560 560 0 0.0
.rodata 145717 145717 0 0.0
.text 1509394 1509394 0 0.0
bridge-app debug+rpc (read only) 1365325 1365325 0 0.0
(read/write) 71888 71888 0 0.0
.bss 35408 35408 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 29792 29792 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 118756 118756 0 0.0
.text 1145733 1145733 0 0.0
chip-tool debug (read only) 6435173 6435141 -32 -0.0
(read/write) 198512 198512 0 0.0
.bss 33704 33704 0 0.0
.data 1008 1008 0 0.0
.data.rel.ro 158216 158216 0 0.0
.dynamic 592 592 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 480 480 0 0.0
.rodata 301208 301208 0 0.0
.text 5730133 5730101 -32 -0.0
lighting-app debug+rpc (read only) 1649161 1649161 0 0.0
(read/write) 104944 104944 0 0.0
.bss 41072 41072 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 57296 57296 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 138449 138449 0 0.0
.text 1372130 1372130 0 0.0
ota-provider-app debug (read only) 1325977 1325977 0 0.0
(read/write) 70344 70344 0 0.0
.bss 37984 37984 0 0.0
.data 912 912 0 0.0
.data.rel.ro 26328 26328 0 0.0
.dynamic 592 592 0 0.0
.got 4048 4048 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 120168 120168 0 0.0
.text 1104738 1104738 0 0.0
ota-requestor-app debug (read only) 1426049 1426049 0 0.0
(read/write) 74240 74240 0 0.0
.bss 40096 40096 0 0.0
.data 976 976 0 0.0
.data.rel.ro 28040 28040 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 132080 132080 0 0.0
.text 1189458 1189458 0 0.0
shell debug (read only) 814361 814361 0 0.0
(read/write) 60232 60232 0 0.0
.bss 16872 16872 0 0.0
.data 240 240 0 0.0
.data.rel.ro 38656 38656 0 0.0
.dynamic 592 592 0 0.0
.got 3504 3504 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 83538 83538 0 0.0
.text 624738 624738 0 0.0
tv-app debug (read only) 1942337 1942337 0 0.0
(read/write) 314608 314608 0 0.0
.bss 245464 245464 0 0.0
.data 1504 1504 0 0.0
.data.rel.ro 61984 61984 0 0.0
.dynamic 592 592 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 167976 167976 0 0.0
.text 1625202 1625202 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2298624 2298624 0 0.0
.bss 181788 181788 0 0.0
.data 5168 5168 0 0.0
.heap 849488 849488 0 0.0
.text 1261224 1261224 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2283376 2283376 0 0.0
.bss 172816 172816 0 0.0
.data 5480 5480 0 0.0
.heap 858152 858152 0 0.0
.text 1245976 1245976 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2256408 2256408 0 0.0
.bss 171632 171632 0 0.0
.data 5480 5480 0 0.0
.heap 859336 859336 0 0.0
.text 1219008 1219008 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2046056 2046056 0 0.0
.bss 156624 156624 0 0.0
.data 4864 4864 0 0.0
.heap 874960 874960 0 0.0
.text 1008656 1008656 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 878863 878863 0 0.0
bss 113316 113316 0 0.0
rodata 97968 97968 0 0.0
text 592020 592020 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 841311 841311 0 0.0
bss 109664 109664 0 0.0
rodata 89328 89328 0 0.0
text 566120 566120 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 803846 803846 0 0.0
bss 114688 114688 0 0.0
rodata 93224 93224 0 0.0
text 521472 521472 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 849687 849687 0 0.0
bss 110352 110352 0 0.0
rodata 93704 93704 0 0.0
text 570268 570268 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 774942 774942 0 0.0
bss 111764 111764 0 0.0
rodata 88992 88992 0 0.0
text 499812 499812 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 855683 855683 0 0.0
bss 110488 110488 0 0.0
rodata 95436 95436 0 0.0
text 574332 574332 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 848767 848767 0 0.0
bss 110368 110368 0 0.0
rodata 93576 93576 0 0.0
text 569392 569392 0 0.0
shell nrf52840dk_nrf52840 (read/write) 779359 779359 0 0.0
bss 109616 109616 0 0.0
rodata 73284 73284 0 0.0
text 521952 521952 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 694406 694406 0 0.0
bss 110600 110600 0 0.0
rodata 67928 67928 0 0.0
text 442560 442560 0 0.0
p6 all-clusters-app default (read/write) 2320400 2320400 0 0.0
.bss 109872 109872 0 0.0
.data 2464 2464 0 0.0
.heap 921008 921008 0 0.0
.text 1278664 1278664 0 0.0
light-app default (read/write) 2256112 2256112 0 0.0
.bss 97936 97936 0 0.0
.data 2328 2328 0 0.0
.heap 933080 933080 0 0.0
.text 1214376 1214376 0 0.0
lock-app default (read/write) 2231472 2231472 0 0.0
.bss 96592 96592 0 0.0
.data 2288 2288 0 0.0
.heap 934464 934464 0 0.0
.text 1189736 1189736 0 0.0
qpg lighting-app qpg6100+debug (read only) 498612 498612 0 0.0
(read/write) 114144 114144 0 0.0
.bss 79848 79848 0 0.0
.data 944 944 0 0.0
.text 493292 493292 0 0.0
lock-app qpg6100+debug (read only) 471216 471216 0 0.0
(read/write) 114144 114144 0 0.0
.bss 78760 78760 0 0.0
.data 896 896 0 0.0
.text 465896 465896 0 0.0
persistent-storage-app qpg6100+debug (read only) 108208 108208 0 0.0
(read/write) 114140 114140 0 0.0
.bss 36696 36696 0 0.0
.data 292 292 0 0.0
.text 102888 102888 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 780882 780882 0 0.0
bss 79896 79896 0 0.0
noinit 37160 37160 0 0.0
text 542870 542870 0 0.0

@woody-apple woody-apple merged commit a5bc3f8 into project-chip:master Dec 2, 2021
@bzbarsky-apple bzbarsky-apple deleted the test-enum-as-enum-class branch December 2, 2021 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants