Skip to content

C++: Support the __mfp8 floating point type #19688

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
Jun 10, 2025
Merged

Conversation

jketema
Copy link
Contributor

@jketema jketema commented Jun 6, 2025

No description provided.

@jketema jketema added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Jun 6, 2025
@github-actions github-actions bot added the C++ label Jun 6, 2025
@jketema jketema force-pushed the mfp8 branch 2 times, most recently from cad12d4 to 883d23c Compare June 9, 2025 20:50
@jketema jketema added the no-change-note-required This PR does not need a change note label Jun 10, 2025
@jketema jketema marked this pull request as ready for review June 10, 2025 06:01
@Copilot Copilot AI review requested due to automatic review settings June 10, 2025 06:01
@jketema jketema requested a review from a team as a code owner June 10, 2025 06:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds full support for the new __mfp8 built-in floating-point type across tests, DB schema, query logic, and upgrade/downgrade scripts.

  • Extend all relevant library-test expectations to include __mfp8
  • Map value 62 to __mfp8 in semmlecode.cpp.dbscheme and Type.qll
  • Provide upgrade and downgrade scripts for the new type

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
cpp/ql/test/library-tests/variables/variables/types.expected Added __mfp8 to variable types table
cpp/ql/test/library-tests/unspecified_type/types/unspecified_type.expected Added __mfp8 to unspecified types
cpp/ql/test/library-tests/type_sizes/type_sizes.expected Added size expectation (1) for __mfp8
cpp/ql/test/library-tests/templates/type_instantiations/types.expected Added __mfp8 to template instantiations
cpp/ql/lib/upgrades/9a7c3c14c1076f64b871719117a558733d987b48/upgrade.properties Describes full upgrade support for __mfp8
cpp/ql/lib/semmlecode.cpp.dbscheme Maps built-in kind 62 to @mfp8
cpp/ql/lib/semmle/code/cpp/Type.qll Extends floatingPointTypeMapping to include __mfp8
cpp/downgrades/af887e83a815a9cefe774ffa80e2493a1365b9e2/upgrade.properties Describes backward downgrade support for __mfp8
cpp/downgrades/af887e83a815a9cefe774ffa80e2493a1365b9e2/builtintypes.ql Adds downgrade mapping for kind 62 → kind 1

Copy link
Contributor

@IdrissRio IdrissRio left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@IdrissRio IdrissRio merged commit f8b192c into github:main Jun 10, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ depends on internal PR This PR should only be merged in sync with an internal Semmle PR no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants