-
Notifications
You must be signed in to change notification settings - Fork 3k
Add required header file and namespace element instead add all. #7864
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
Conversation
f031ea0
to
de2a04a
Compare
events/EventQueue.cpp
Outdated
|
||
using namespace events; |
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.
Please enclose the definitions inside the namespace event. using
is not meant to be use that way:
namespace events {
// definitions
} // namespace event
de2a04a
to
c4a6662
Compare
1cda348
to
5106000
Compare
5106000
to
86104a1
Compare
86104a1
to
86b2fb3
Compare
86b2fb3
to
2679c99
Compare
Rebased to resolve conflicts |
040bff8
to
2b2b20b
Compare
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.
this is looking good 👍
/morph build |
6193510
to
1d23843
Compare
Rebased to resolve conflicts |
Last round of reviews opened ! |
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.
Looks good to me.
@@ -102,7 +107,7 @@ int ATCmdParser::read(char *data, int size) | |||
|
|||
|
|||
// printf/scanf handling | |||
int ATCmdParser::vprintf(const char *format, va_list args) | |||
int ATCmdParser::vprintf(const char *format, std::va_list args) |
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.
std::vaargs types are in #include <cstdarg>
How is it included ?
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.
platform/ATCmdParser.h
includes cstdarg
/morph build |
Build : SUCCESSBuild number : 3452 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3074 |
Test : SUCCESSBuild number : 3244 |
Description
Source inside mbed-os should not be using "mbed.h" even in CPP files, instead required header file and namespace should be explicitly added inside
mbed-os
With #7760 PR, we will give an option to remove namespace.
Pull request type