Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Sep 3, 2025

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Sep 3, 2025
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Sep 3, 2025
@hvitved hvitved marked this pull request as ready for review September 3, 2025 10:17
@hvitved hvitved requested a review from a team as a code owner September 3, 2025 10:17
@hvitved hvitved requested review from Copilot and paldepind September 3, 2025 10:17
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 location assignment for DataFlowCallable objects in Rust by ensuring that both CFG-based and library-based callables have proper location information. Previously, only CFG scope callables had location information assigned.

Key changes:

  • Extended the getLocation() method for DataFlowCallable to include locations from summarized callables
  • Updated test expectations to handle external locations properly
  • Added post-processing for external location formatting in tests

Reviewed Changes

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

File Description
viableCallable.qlref Added external location post-processing to test configuration
viableCallable.expected Updated expected test output to show {EXTERNAL LOCATION} for external functions
DataFlowImpl.qll Extended getLocation() method to return locations for both CFG and summarized callables

@hvitved hvitved merged commit f2b8ac1 into github:main Sep 3, 2025
21 checks passed
@hvitved hvitved deleted the rust/summarized-callable-location branch September 3, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants