Skip to content

Commit

Permalink
C++: Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jketema committed Sep 3, 2024
1 parent 4945943 commit 5281943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ class C11GenericExpr extends Conversion, @c11_generic {
* ```
* this holds for 0.
*/
predicate isSelectedAssociation(int n) { this.getAssociationExpr(n) instanceof ReuseExpr }
predicate isSelectedAssociation(int n) {
this.getAssociationExpr(n).(ReuseExpr).getReusedExpr() = this.getExpr()
}
}

/**
Expand Down

0 comments on commit 5281943

Please sign in to comment.