-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Shared: Re-factor summary, source and sink model generators into separate modules. #19382
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
base: main
Are you sure you want to change the base?
Conversation
private import semmle.code.cpp.ir.IR | ||
private import semmle.code.cpp.dataflow.ExternalFlow as ExternalFlow | ||
private import semmle.code.cpp.ir.dataflow.internal.DataFlowImplCommon as DataFlowImplCommon | ||
private import semmle.code.cpp.ir.dataflow.internal.DataFlowImplSpecific | ||
private import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate as DataFlowPrivate | ||
private import semmle.code.cpp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl | ||
private import semmle.code.cpp.ir.dataflow.internal.TaintTrackingImplSpecific | ||
private import semmle.code.cpp.dataflow.new.TaintTracking | ||
private import semmle.code.cpp.dataflow.new.TaintTracking as Tt |
Check warning
Code scanning / CodeQL
Names only differing by case Warning
private import semmle.code.cpp.ir.IR | ||
private import semmle.code.cpp.dataflow.ExternalFlow as ExternalFlow | ||
private import semmle.code.cpp.ir.dataflow.internal.DataFlowImplCommon as DataFlowImplCommon | ||
private import semmle.code.cpp.ir.dataflow.internal.DataFlowImplSpecific | ||
private import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate as DataFlowPrivate | ||
private import semmle.code.cpp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl | ||
private import semmle.code.cpp.ir.dataflow.internal.TaintTrackingImplSpecific | ||
private import semmle.code.cpp.dataflow.new.TaintTracking | ||
private import semmle.code.cpp.dataflow.new.TaintTracking as Tt | ||
private import semmle.code.cpp.dataflow.new.DataFlow as Df |
Check warning
Code scanning / CodeQL
Names only differing by case Warning
4fea2b0
to
fbe0394
Compare
…rate param modules.
fbe0394
to
c9d01bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The C/C++ parts LGTM 👍
In this PR we re-write the model generator into separate (nested) parameterized modules. Prior to this change it was only possible to create a model generator that could create summaries, neutrals, source and sinks. If only summary/neutral models are of interest, one still needed to provide all the source and sink model generation related parameters (as these were included in the input signature for model generator). With this change the model generator is turned into a series of nested parameterized modules.
That is, to create a model generator one now needs to
Furthermore, in this PR we sprinkle sensible predicate defaults for some of the model generator input predicates.