Skip to content

Conversation

@jketema
Copy link
Contributor

@jketema jketema commented Nov 19, 2025

Commit-by-commit review recommended.

The fix was accidentially lost when rebasing the branch that introduced this
predicate.
This make the predicate give back sensible results on (upgraded) databases
where we do not have expanded arguments, and avoid having to write case
distinctions in places where we would want to use `getExpandedArgument`.
Copilot AI review requested due to automatic review settings November 19, 2025 11:52
@jketema jketema requested a review from a team as a code owner November 19, 2025 11:52
@github-actions github-actions bot added the C++ label Nov 19, 2025
@jketema jketema added the no-change-note-required This PR does not need a change note label Nov 19, 2025
Copilot finished reviewing on behalf of jketema November 19, 2025 11:54
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

This PR fixes two bugs in the Compilation class related to handling expanded compiler arguments in the C++ CodeQL library.

  • Corrects getAnExpandedArgument() to properly delegate to getExpandedArgument(_) instead of getArgument(_)
  • Adds fallback logic to getExpandedArgument(int i) to return regular arguments when expanded arguments are not available in the database

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jketema jketema merged commit 0c43f2c into github:main Nov 19, 2025
24 of 25 checks passed
@jketema jketema deleted the exp-arg-fix branch November 19, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ 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