Skip to content

Commit

Permalink
Merge pull request #17509 from michaelnebel/modelgen/parammodule
Browse files Browse the repository at this point in the history
C#/Java: Re-factor the model generator to be a parameterized module.
  • Loading branch information
michaelnebel authored Sep 26, 2024
2 parents 297d321 + e608575 commit dd993c3
Show file tree
Hide file tree
Showing 27 changed files with 1,439 additions and 2,132 deletions.
4 changes: 0 additions & 4 deletions config/identical-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
"java/ql/lib/semmle/code/java/dataflow/internal/rangeanalysis/SsaReadPositionCommon.qll",
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/SsaReadPositionCommon.qll"
],
"Model as Data Generation Java/C# - CaptureModels": [
"java/ql/src/utils/modelgenerator/internal/CaptureModels.qll",
"csharp/ql/src/utils/modelgenerator/internal/CaptureModels.qll"
],
"Sign Java/C#": [
"java/ql/lib/semmle/code/java/dataflow/internal/rangeanalysis/Sign.qll",
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/Sign.qll"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
import internal.CaptureModels

from DataFlowSummaryTargetApi api, string flow
where flow = captureContentFlow(api)
where flow = ContentSensitive::captureFlow(api)
select flow order by flow
2 changes: 0 additions & 2 deletions csharp/ql/src/utils/modelgenerator/CaptureNeutralModels.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
* @tags modelgenerator
*/

import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
import internal.CaptureModels
import internal.CaptureSummaryFlowQuery

from DataFlowSummaryTargetApi api, string noflow
where noflow = captureNoFlow(api)
Expand Down
2 changes: 0 additions & 2 deletions csharp/ql/src/utils/modelgenerator/CaptureSummaryModels.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
* @tags modelgenerator
*/

import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
import internal.CaptureModels
import internal.CaptureSummaryFlowQuery

from DataFlowSummaryTargetApi api, string flow
where flow = captureFlow(api)
Expand Down
Loading

0 comments on commit dd993c3

Please sign in to comment.