-
Notifications
You must be signed in to change notification settings - Fork 3k
fix namespaces for MBED_NO_GLOBAL_USING_DIRECTIVE feature #13568
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
fix namespaces for MBED_NO_GLOBAL_USING_DIRECTIVE feature #13568
Conversation
@EmbedEngineer, thank you for your changes. |
@EmbedEngineer The BLE part should be addressed by #13475 |
I added a label "needs: preceding PR" |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
39da51a
to
5cb15e8
Compare
@EmbedEngineer was this rebased after this PR was merged - please provide an update |
5cb15e8
to
66c1a1f
Compare
@0xc0170 update is out |
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.
LGTM just one styling request
drivers/source/usb/TaskBase.cpp
Outdated
@@ -21,19 +21,19 @@ | |||
#include "rtos/Semaphore.h" | |||
#include "platform/mbed_critical.h" | |||
|
|||
TaskBase::TaskBase(TaskQueue *q) | |||
events::TaskBase::TaskBase(TaskQueue *q) |
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.
just styling, should this be rather entirely in namespace events {
}
rather than each method?
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
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.
Change fine but I agree with @0xc0170 that TaskBase and PolledQueue could be entirely in namespace events { } rather than each method.
@EmbedEngineer would you be able to send a new Pr with the proposed fix ? The Ci status were updated (Travis migration), so it would be the best to create new PR. |
66c1a1f
to
c91a9c6
Compare
added namespaces in various files
c91a9c6
to
bc23157
Compare
@0xc0170 updated the PR |
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.
One styling change, otherwise LGTM. WE can start CI once updated
@@ -21,17 +21,17 @@ | |||
#include "platform/Callback.h" | |||
|
|||
|
|||
PolledQueue::PolledQueue(mbed::Callback<void()> cb): _cb(cb) | |||
events::PolledQueue::PolledQueue(mbed::Callback<void()> cb): _cb(cb) |
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.
also this one to be in events namespace
@EmbedEngineer Let us know if you can update ,or we shall create a separate PR to take over so this can get in? There's already similar PR referenced above #14031. Probably we can take this one there. |
We are proceeding with 14031 (cherry picked this pr there). I'll close this now. |
Summary of changes
This pull request fixes issue #13539.
Atm when activating MBED_NO_GLOBAL_USING_DIRECTIVE feature, mbed is not compiling when activation the BLE feature, due to missing namespaces in various files.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers