autoformat

This commit is contained in:
Chris Smowton
2023-11-24 19:05:33 +00:00
parent 561f06a4bd
commit b1cea1d91e
2 changed files with 4 additions and 3 deletions

View File

@@ -1673,7 +1673,9 @@ class LocalVariableDeclExpr extends Expr, @localvariabledeclexpr {
or
exists(PatternCase pc | this.getParent() = pc | result.isNthChildOf(pc, -2))
or
exists(RecordPatternExpr rpe, int index | this.isNthChildOf(rpe, index) and result.isNthChildOf(rpe, -(index + 1)) )
exists(RecordPatternExpr rpe, int index |
this.isNthChildOf(rpe, index) and result.isNthChildOf(rpe, -(index + 1))
)
}
/** Gets the name of the variable declared by this local variable declaration expression. */

View File

@@ -231,8 +231,7 @@ class Guard extends ExprParent {
branch = true and
bb2.getFirstNode() = sc.getControlFlowNode() and
pred = sc.getControlFlowNode().getAPredecessor() and
isNonFallThroughPredecessor(sc, pred)
and
isNonFallThroughPredecessor(sc, pred) and
bb1 = pred.getBasicBlock()
)
or