-
Notifications
You must be signed in to change notification settings - Fork 3k
BlockDevice classes should be moved to mbed namespace #6684
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
Comments
Related: #5679. 😃 |
👍 @geky can you please review |
Yep! 👍 |
Do you think we could make a CI task for this? Check that any header file with camel case name does not have "include mbed.h" and has "namespace mbed"? |
CC @ARMmbed/mbed-os-storage |
@deepikabhavnani @bridadan @0xc0170 @pan- @kjbracey-arm Here's an idea:
|
However, there is one problem, once we introduce MBED_NO_POLLUTION, we can't move more classes into the mbed namespace without breaking compatibility again.
|
@geky - Can we introduce MBED_NO_POLLUTION, when we are confident that all classes are in mbed namespace. And till we do that every existing class added to namespace should explicitly add 'using mbed::;` in header file. This approach will help us to move classes into mbed namespace though still polluted, but will have way to un-pollute in one go. |
How far off is Mbed OS 6.0? Maybe you could just make the breaking changes you need to make then, including
Re: 3, when an app developer is including the whole Mbed OS source tree under a project (per the current paradigm), it would be preferable to auto-detect and build only the parts of Mbed OS which are needed by the application. |
@bmcdonnell-ionx Regarding the 3rd case: |
I've asked for that elsewhere, too. But as long as the OS source is under the app source, assuming no "library build" option is specified, I think the the minimal build would be optimal. |
Internal Jira reference: https://jira.arm.com/browse/IOTSTOR-507 |
#7760 should resolve this. Please reopen if required |
BlockDevice classes (and all mbed features) should be moved to the mbed namespace and should not #include "mbed.h"
mbed-os/features/filesystem/bd/BlockDevice.h
Line 43 in 42d77ec
The text was updated successfully, but these errors were encountered: