-
Notifications
You must be signed in to change notification settings - Fork 543
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
cxxtest: optional stream test #2722
Conversation
[Experimental Bot, please feedback here] I need the content of the PR to assess if it meets the requirements. Please provide the following:
With this information, I can then evaluate the PR against the NuttX requirements and provide you with a concise answer. |
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 CPP test, you cannot remove C++ specific calls here, rejecting.
PR without description will be rejected, see https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md.
If you think otherwise please reopen and explain the concept in detail.
why? locale is an optional feature in nuttx libc, so c++ test code should skip locale related test if libc close this feature.
Update. |
Thanks @xiaoxiang781216 :-) It is reaaaallly important to write good description of the PR, there was none. Contributing Guidelines were updated to provide examples, there is a reference at top of PR report, we even created PR AI BOT to suggest how the description can be improved to help in quick/good assessment. We have a lot of PR to analyze so we need the description why change is necessary, what it fixes/adds, what is the testing result before and after, so PR dont break more than it fixes. We cannot blindly accept undocumented PRs because things start falling apart :-) C++ NuttX maintainers would be the best person to ask for a review here, I don't work with C++ sorry, if they give a GO you have my GO too. I have requested a review support on dev@ mailing list :-) What I don't like here is replacing |
Yes, it always good to request the contributor to add the detailed description.
Most C++ change in NuttX contributes by my team, so I am a good candidate to review the related change.
Because cin/cout depends on locale to pass the build, that's why to replace the code which call cin/cout unconditionally, the conditional part still keep as before:
cout/cin is very code size consumption: here is the patch to reduce libcxx code size: |
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.
Thank you @xiaoxiang781216 for the detailed explanation, now all clear :-)
- C++ code wrapped conditionally and executed properly when enabled.
printf
in place ofstd::
to reduce embedded code size where possible.
You see two sentences of explanation and things look totally different :-) :-)
Yes, @cuiziwei1 please update the pr, it's always important to describe the change clearly. |
52df72d
to
d54f350
Compare
Signed-off-by: jihandong <[email protected]> Signed-off-by: cuiziwei <[email protected]>
Summary
skip the locale related test if libc doesn't enable CONFIG_CXX_LOCALIZATION.
Impact
cxxtest
Testing
ci