mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Adjust BasicBlock-based qltests.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import java
|
||||
import semmle.code.java.controlflow.Dominance
|
||||
import utils.test.BasicBlock
|
||||
|
||||
from BasicBlock b, BasicBlock b2
|
||||
where b.strictlyDominates(b2)
|
||||
select b, b2
|
||||
select getFirstAstNode(b), getFirstAstNode(b2)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import java
|
||||
import utils.test.BasicBlock
|
||||
|
||||
from BasicBlock b, BasicBlock b2
|
||||
where b.getASuccessor() = b2
|
||||
select b, b2
|
||||
select getFirstAstNodeOrSynth(b), getFirstAstNodeOrSynth(b2)
|
||||
|
||||
Reference in New Issue
Block a user