Files
codeql/csharp/ql/src/utils/modelgenerator/CaptureNeutralModels.ql

18 lines
535 B
Plaintext

/**
* @name Capture neutral models.
* @description Finds neutral models to be used by other queries.
* @kind diagnostic
* @id cs/utils/modelgenerator/neutral-models
* @tags modelgenerator
*/
import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
import internal.CaptureModels
import internal.CaptureSummaryFlowQuery
from DataFlowTargetApi api, string noflow
where
noflow = captureNoFlow(api) and
not api.(FlowSummaryImpl::Public::SummarizedCallable).applyManualModel()
select noflow order by noflow