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

Skip to content

QL4QL: Extend ql/inline-overlay-caller #19863

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 1 commit into from
Jun 24, 2025
Merged

Conversation

kaspersv
Copy link
Contributor

This PR extends the ql/inline-overlay-caller query with support for overlay[caller?] annotations.

@kaspersv kaspersv force-pushed the kaspersv/ql4ql-overlay-caller-q branch 4 times, most recently from 8e30984 to 49db3aa Compare June 24, 2025 09:51
@kaspersv kaspersv force-pushed the kaspersv/ql4ql-overlay-caller-q branch from 49db3aa to e1fc138 Compare June 24, 2025 09:58
@kaspersv kaspersv requested a review from ginsbach June 24, 2025 10:27
@kaspersv kaspersv marked this pull request as ready for review June 24, 2025 10:28
@Copilot Copilot AI review requested due to automatic review settings June 24, 2025 10:28
@kaspersv kaspersv requested a review from a team as a code owner June 24, 2025 10:28
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

This PR adds support for the overlay[caller?] annotation in the inline-overlay-caller query, updating both the implementation and test expectations.

  • Extend the query to recognize and skip overlay[caller?] annotations
  • Update the warning message to suggest overlay[caller?] alongside overlay[caller]
  • Define the new CallerQArg and OverlayCallerQ classes in the AST

Reviewed Changes

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

File Description
ql/ql/test/queries/overlay/InlineOverlayCaller/Test.qll Added a test predicate with overlay[caller?]
ql/ql/test/queries/overlay/InlineOverlayCaller/InlineOverlayCaller.expected Updated expected warning to mention overlay[caller?]
ql/ql/src/queries/overlay/InlineOverlayCaller.ql Excluded OverlayCallerQ annotations and updated the suggestion text
ql/ql/src/codeql_ql/ast/Ast.qll Introduced CallerQArg and OverlayCallerQ classes

@kaspersv kaspersv merged commit c380c5f into main Jun 24, 2025
12 checks passed
@kaspersv kaspersv deleted the kaspersv/ql4ql-overlay-caller-q branch June 24, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants