mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
Go: Add MaD related extensible predicates.
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
*/
|
||||
|
||||
private import go
|
||||
private import ExternalFlowExtensions as Extensions
|
||||
private import internal.DataFlowPrivate
|
||||
private import internal.FlowSummaryImpl::Private::External
|
||||
private import internal.FlowSummaryImplSpecific
|
||||
|
||||
27
go/ql/lib/semmle/go/dataflow/ExternalFlowExtensions.qll
Normal file
27
go/ql/lib/semmle/go/dataflow/ExternalFlowExtensions.qll
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* This module provides extensible predicates for defining MaD models.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Holds if a source model exists for the given parameters.
|
||||
*/
|
||||
extensible predicate sourceModel(
|
||||
string package, string type, boolean subtypes, string name, string signature, string ext,
|
||||
string output, string kind, string provenance
|
||||
);
|
||||
|
||||
/**
|
||||
* Holds if a sink model exists for the given parameters.
|
||||
*/
|
||||
extensible predicate sinkModel(
|
||||
string package, string type, boolean subtypes, string name, string signature, string ext,
|
||||
string input, string kind, string provenance
|
||||
);
|
||||
|
||||
/**
|
||||
* Holds if a summary model exists for the given parameters.
|
||||
*/
|
||||
extensible predicate summaryModel(
|
||||
string package, string type, boolean subtypes, string name, string signature, string ext,
|
||||
string input, string output, string kind, string provenance
|
||||
);
|
||||
Reference in New Issue
Block a user