Skip to content

C#: Remove splitting-awareness from Range Analysis.#21482

Merged
aschackmull merged 1 commit intogithub:mainfrom
aschackmull:csharp/rangeanalysis-no-split
Mar 16, 2026
Merged

C#: Remove splitting-awareness from Range Analysis.#21482
aschackmull merged 1 commit intogithub:mainfrom
aschackmull:csharp/rangeanalysis-no-split

Conversation

@aschackmull
Copy link
Contributor

Small followup for #21473 to get rid of the final use of the splitting-awareness library, so we can delete the library as well.

@aschackmull aschackmull requested a review from a team as a code owner March 16, 2026 09:00
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Mar 16, 2026
Copilot AI review requested due to automatic review settings March 16, 2026 09:00
@github-actions github-actions bot added the C# label Mar 16, 2026
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 removes the last dependency on the rangeanalysis-local “splitting-awareness” reachability helper, enabling deletion of that helper library as a follow-up to #21473.

Changes:

  • Replaces the hasChild mapping that relied on a reachability configuration with a direct parent/child + CFG-node mapping.
  • Removes the now-unused internal/rangeanalysis/ControlFlowReachability.qll module entirely.

Reviewed changes

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

File Description
csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/RangeUtils.qll Drops the local reachability-based child mapping and uses direct AST/Cfg-node relationships.
csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/ControlFlowReachability.qll Deletes the splitting-aware reachability helper module, now unused.

You can also share your feedback on Copilot code review. Take the survey.

@aschackmull aschackmull merged commit c24b43d into github:main Mar 16, 2026
32 checks passed
@aschackmull aschackmull deleted the csharp/rangeanalysis-no-split branch March 16, 2026 09:54
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.

3 participants