Skip to content

C++: Update expected test results after extractor changes #19837

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jketema
Copy link
Contributor

@jketema jketema commented Jun 20, 2025

See internal PR for details.

@github-actions github-actions bot added the C++ label Jun 20, 2025
@jketema jketema added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Jun 20, 2025
@jketema jketema marked this pull request as ready for review June 20, 2025 19:06
@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 19:06
@jketema jketema requested a review from a team as a code owner June 20, 2025 19:06
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

Updates expected test outputs and query definitions to align with recent extractor changes.

  • Adjusted test comments in printf1.h to reflect new detection status for %zu format arguments.
  • Updated .expected files for WrongTypeFormatArguments, IR, and AST outputs to use __builtin_va_list instead of __va_list_tag[1].
  • Refined usertypes.ql with grouped conditions and file-existence filter.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

File Description
printf1.h (Microsoft_no_wchar & Microsoft) Changed inline comments to mark two format checks as failures.
WrongTypeFormatArguments.expected (both dirs) Added new expected diagnostics for ul and sst.
raw_ir.expected, aliased_ir.expected, PrintAST.expected Replaced __va_list_tag[1] with __builtin_va_list.
usertypes.ql Wrapped OR conditions in parentheses and added exists(t.getFile()) filter.
Comments suppressed due to low confidence (1)

cpp/ql/test/library-tests/floats/float128/usertypes.ql:5

  • [nitpick] Indentation of the grouped conditions block is inconsistent. Consider aligning the inner lines at the same indentation level to improve readability.
  (

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants