Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jketema
Copy link
Contributor

@jketema jketema commented May 28, 2025

The <? and >? operators where removed in g++ in version 4.3, and the latest version of our our frontend enforces this through a version check. Hence, to keep the test working, we not to explicitly specify a version.

The `<?` and `>?` operators where removed in g++ in version 4.3, and the
latest version of our our frontend enforces this through a version check.
Hence, to keep the test working, we not to explicitly specify a version.
Copilot AI review requested due to automatic review settings May 28, 2025 12:20
@jketema jketema requested a review from a team as a code owner May 28, 2025 12:20
@github-actions github-actions bot added the C++ label May 28, 2025
Copy link
Contributor

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

Updates the min/max operator test to run under GNU C++ 4.2.0 so that the deprecated <?/>? operators are still recognized by the extractor.

  • Adds a semmle-extractor option to force --gnu_version 40200 in the test.
  • Adjusts the expected spans for <? and >? in the updated file.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cpp/ql/test/library-tests/exprs/min_max/test.cpp Added extractor comment to specify GNU version 4.2.0.
cpp/ql/test/library-tests/exprs/min_max/expr.expected Updated expected operator spans for <? and >?.

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 👍

@jketema jketema merged commit 7ccae93 into github:main May 28, 2025
9 checks passed
@jketema jketema deleted the gnu-version branch May 28, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants