Skip to content

C#/Java: Modelgenerator. Lift models to unbound generic implementations. - #22192

Merged
michaelnebel merged 5 commits into
github:mainfrom
michaelnebel:shared/modelgengeneric
Aug 11, 2026
Merged

michaelnebel merged 5 commits into
github:mainfrom
michaelnebel:shared/modelgengeneric

Conversation

@michaelnebel

@michaelnebel michaelnebel commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

In this PR we update the model generator to cater for lifting models to unbound declarations.

If the PR is review'ed on a commit basis, the effect for C# is evident.

@michaelnebel
michaelnebel force-pushed the shared/modelgengeneric branch from 1756034 to 16766cc Compare July 16, 2026 10:26
@michaelnebel michaelnebel changed the title C#/Java: Lift to unbound generic implementations. C#/Java: Modelgenerator. Lift models to unbound generic implementations. Jul 16, 2026
@michaelnebel
michaelnebel force-pushed the shared/modelgengeneric branch from 16766cc to 392d02d Compare July 16, 2026 12:49
@michaelnebel
michaelnebel force-pushed the shared/modelgengeneric branch from 392d02d to f184d28 Compare July 17, 2026 07:23
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Jul 17, 2026
@michaelnebel
michaelnebel marked this pull request as ready for review July 17, 2026 08:51
@michaelnebel
michaelnebel requested review from a team as code owners July 17, 2026 08:51
Copilot AI review requested due to automatic review settings July 17, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates C# and Java model generators to lift override models to unbound generic declarations.

Changes:

  • Canonicalizes overridden generic callables.
  • Adds direct and nested generic inheritance tests.
Show a summary per file
File Description
java/ql/test/utils/modelgenerator/dataflow/p/Generics.java Adds Java generic override test cases.
java/ql/src/utils/modelgenerator/internal/CaptureModels.qll Resolves overrides to source declarations.
csharp/ql/test/utils/modelgenerator/dataflow/Summaries.cs Adds C# generic virtual override tests.
csharp/ql/src/utils/modelgenerator/internal/CaptureModels.qll Resolves overridden callables to unbound declarations.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Medium

@aschackmull aschackmull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michaelnebel
michaelnebel merged commit 4e31516 into github:main Aug 11, 2026
45 checks passed
@michaelnebel
michaelnebel deleted the shared/modelgengeneric branch August 11, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# Java 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