Skip to content

Conversation

@swasti16
Copy link
Contributor

No description provided.

@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from a0e8fdf to b68dd28 Compare October 13, 2025 19:26
@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from b68dd28 to 5ff8248 Compare October 13, 2025 19:45
@firewave
Copy link
Collaborator

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).

@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from 5ff8248 to 91149bb Compare October 13, 2025 21:28
@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from 91149bb to 1252411 Compare October 14, 2025 14:29
Copy link

@github-advanced-security github-advanced-security bot left a 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.

Copy link
Owner

@danmar danmar left a 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().

@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from 1252411 to 27d89a8 Compare October 14, 2025 15:33
@firewave firewave changed the title #14197: Add float bits in platform fixed #14197: Add float bits in platform Oct 14, 2025
Copy link
Owner

@danmar danmar left a 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

@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from 27d89a8 to 23d2add Compare October 14, 2025 18:59
@swasti16 swasti16 force-pushed the swasti/add_float_bits branch 2 times, most recently from cf73d2f to 6a6a228 Compare October 14, 2025 21:10
@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from 6a6a228 to 41e3aec Compare October 14, 2025 21:20
@swasti16 swasti16 force-pushed the swasti/add_float_bits branch from 41e3aec to e4eb768 Compare October 14, 2025 21:49
@sonarqubecloud
Copy link

@danmar danmar merged commit f3e2845 into danmar:main Oct 15, 2025
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants