Skip to content
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

C#/Java: Re-factor the model generator to be a parameterized module. #17509

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Sep 18, 2024

In this PR we replace the "pyrameterised" module of the model generator with a parameterised module.
The comments used in the signature module are mostly taken from the C#/Java specific implementation.

kind = DataFlowImplCommon::getValueReturnPosition(this).getKind() or
kind = DataFlowImplCommon::getParamReturnPosition(this, _).getKind()
}
private import csharp as CS

Check warning

Code scanning / CodeQL

Names only differing by case Warning

CS is only different by casing from Cs that is used elsewhere for modules.
private import CaptureModelsSpecific
private import CaptureModelsPrinting
private import java as J
private import semmle.code.java.dataflow.DataFlow

Check warning

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
semmle.code.java.dataflow.TaintTracking
.
private import semmle.code.java.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
private import semmle.code.java.dataflow.internal.ModelExclusions
private import semmle.code.java.dataflow.internal.TaintTrackingImplSpecific
private import semmle.code.java.dataflow.SSA as Ssa

Check warning

Code scanning / CodeQL

Names only differing by case Warning

Ssa is only different by casing from SSA that is used elsewhere for modules.
*/

private import codeql.dataflow.DataFlow
private import codeql.dataflow.TaintTracking as Tt

Check warning

Code scanning / CodeQL

Names only differing by case Warning

Tt is only different by casing from TT that is used elsewhere for modules.
@michaelnebel michaelnebel force-pushed the modelgen/parammodule branch 2 times, most recently from 117287d to d09948f Compare September 19, 2024 07:24
@michaelnebel michaelnebel changed the title C#/Java: Make model generation a parameterised module. C#/Java: Re-factor the model generator to be a parameterized module. Sep 19, 2024
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Sep 19, 2024
@michaelnebel michaelnebel marked this pull request as ready for review September 19, 2024 12:36
@michaelnebel michaelnebel requested review from a team as code owners September 19, 2024 12:36
@michaelnebel
Copy link
Contributor Author

DCA looks good!

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.

1 participant