Skip to content

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

Merged
merged 4 commits into from
Oct 25, 2018

Conversation

deepikabhavnani
Copy link

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

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change


using namespace events;
Copy link
Member

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 

@deepikabhavnani
Copy link
Author

Rebased to resolve conflicts

@deepikabhavnani deepikabhavnani force-pushed the remove_mbed_h branch 2 times, most recently from 040bff8 to 2b2b20b Compare September 5, 2018 15:10
Copy link
Contributor

@geky geky left a 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 👍

@0xc0170 0xc0170 requested a review from a team September 20, 2018 12:49
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 1, 2018

/morph build

@deepikabhavnani
Copy link
Author

Rebased to resolve conflicts

@deepikabhavnani deepikabhavnani requested review from pan- and geky and removed request for pan-, geky and 0xc0170 October 15, 2018 15:40
@cmonr
Copy link
Contributor

cmonr commented Oct 19, 2018

@bulislaw @pan- @geky Thoughts?

@cmonr cmonr requested a review from kjbracey October 19, 2018 19:51
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2018

Last round of reviews opened !

Copy link
Member

@pan- pan- left a 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)
Copy link
Member

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 ?

Copy link
Author

@deepikabhavnani deepikabhavnani Oct 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 24, 2018

Build : SUCCESS

Build number : 3452
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7864/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Oct 24, 2018

@mbed-ci
Copy link

mbed-ci commented Oct 24, 2018

@cmonr
Copy link
Contributor

cmonr commented Oct 25, 2018

@bulislaw @geky @kjbracey-arm Final call to review. Otherwise will go in early tomorrow.

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.

8 participants