-
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
Force including <ble/Ble.h> umbrella header instead of specific headers #33023
Conversation
PR #33023: Size comparison from 47c6d46 to b575fd6 Full report (11 builds for cc13x4_26x4, cc32xx, mbed, qpg, stm32)
|
PR #33023: Size comparison from 47c6d46 to f9360eb Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
Actually, why is it better to have a single header for everything instead of including only what is needed? |
Actually it depends. I thought that the intent of the |
Thanks for the clarification. Right, I don't have a strong opinion which option is better (though subjectively, I prefer if headers explicitly include what they need instead of relying on some outer header) and your PR is an improvement in a way it at least enforces the correct usage of the headers, but I was just curious about your reasons. |
PR #33023: Size comparison from 511c974 to 40ca835 Decreases (5 builds for cyw30739, efr32)
Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
Problem
In the
src/ble
library there is a dedicated<ble/Ble.h>
umbrella header which ought to be a dedicated public header for the BLE library. However, not everyone is accessing BLE library API via this header.Changes
<ble/Ble.h>
(one exception is<ble/BleConfig.h>
which is included in theCHIPConfig.h
)src/ble
according to IWYU outputiwyu-check.py
helper script a bitTesting
CI should detect potential build breaks.