Python: Simple dataflow annotations

None of these required any changes to the dataflow libraries, so it
seemed easiest to put them in their own commit.
This commit is contained in:
Taus
2026-01-30 13:30:57 +00:00
parent 51ebec9164
commit df0f2f8ce4
17 changed files with 39 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
*
* Provides helper class for defining additional API graph edges.
*/
overlay[local]
module;
private import python
private import semmle.python.dataflow.new.DataFlow

View File

@@ -177,6 +177,7 @@ module Stages {
* Always holds.
* Ensures that a predicate is evaluated as part of the DataFlow stage.
*/
overlay[local]
cached
predicate ref() { 1 = 1 }