mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Revert "Fix CFG construction of ExprStmt and StmtExpr"
This reverts commit db8d718cdbf0bef9cdf246221a921b99d4b22bea. It broke ql/java/ql/test/library-tests/successors/TestDeclarations
This commit is contained in:
@@ -909,8 +909,7 @@ private module ControlFlowGraphImpl {
|
||||
)
|
||||
or
|
||||
// the last node in an `ExprStmt` is the last node in the expression
|
||||
last(n.(ExprStmt).getExpr(), last, completion) and
|
||||
completion instanceof NormalOrBooleanCompletion
|
||||
last(n.(ExprStmt).getExpr(), last, completion) and completion = NormalCompletion()
|
||||
or
|
||||
// the last node in a `StmtExpr` is the last node in the statement
|
||||
last(n.(StmtExpr).getStmt(), last, completion)
|
||||
@@ -1233,9 +1232,9 @@ private module ControlFlowGraphImpl {
|
||||
n = synch and result = first(synch.getBlock())
|
||||
)
|
||||
or
|
||||
result = first(n.(ExprStmt).getExpr()) and completion instanceof NormalOrBooleanCompletion
|
||||
result = first(n.(ExprStmt).getExpr()) and completion = NormalCompletion()
|
||||
or
|
||||
result = first(n.(StmtExpr).getStmt()) and completion instanceof NormalOrBooleanCompletion
|
||||
result = first(n.(StmtExpr).getStmt()) and completion = NormalCompletion()
|
||||
or
|
||||
result = first(n.(LabeledStmt).getStmt()) and completion = NormalCompletion()
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user