-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fixed #14197: Add float bits in platform #7886
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
a0e8fdf to
b68dd28
Compare
b68dd28 to
5ff8248
Compare
|
I guess you can disregard the deluge of signedness warnings. We currently do not care about them and have all the related compiler warnings disabled (I am not going to get into that discussion again but you are welcome to). |
5ff8248 to
91149bb
Compare
91149bb to
1252411
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.
Cppcheck Premium found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
danmar
left a comment
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.
you need to update the calculation in Platform::loadFromXmlDocument also.
It's not your fault but I feel it's insane that we copy paste the calculations in so many places. I would prefer a private method calculateBitMembers().
1252411 to
27d89a8
Compare
danmar
left a comment
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.
these "Integral promotion and the usual arithmetic conversions shall not change the signedness or the type category of an operand" are unwanted. Please add suppression in the cppcheckpremium-suppressions file:
# integer promotions
premium-misra-cpp-2023-7.0.5
27d89a8 to
23d2add
Compare
cf73d2f to
6a6a228
Compare
6a6a228 to
41e3aec
Compare
41e3aec to
e4eb768
Compare
|



No description provided.