python: elide nodes without location from basic

This commit is contained in:
Rasmus Lerchedahl Petersen
2023-05-15 21:18:51 +02:00
parent 5b4f98d6c4
commit 5d68473d12
21 changed files with 38 additions and 181 deletions

View File

@@ -1,5 +1,8 @@
import experimental.dataflow.callGraphConfig
from DataFlow::Node source, DataFlow::Node sink
where exists(CallGraphConfig cfg | cfg.hasFlow(source, sink))
where
exists(CallGraphConfig cfg | cfg.hasFlow(source, sink)) and
exists(source.getLocation().getFile().getRelativePath()) and
exists(sink.getLocation().getFile().getRelativePath())
select source, sink