Skip to content

Commit 187fdf6

Browse files
committed
C++: Rename twoOperand to isTwoOperand
1 parent 98e8858 commit 187fdf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/exprs/LogicalOperation.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ConditionalExpr extends Operation, @conditionalexpr {
7373

7474
/** Gets the 'then' expression of this conditional expression. */
7575
Expr getThen() {
76-
if this.twoOperand()
76+
if this.isTwoOperand()
7777
then result = this.getCondition()
7878
else expr_cond_true(underlyingElement(this), unresolveElement(result))
7979
}
@@ -86,7 +86,7 @@ class ConditionalExpr extends Operation, @conditionalexpr {
8686
/**
8787
* Holds if this expression used the two operand form `guard ? : false`.
8888
*/
89-
predicate twoOperand() {
89+
predicate isTwoOperand() {
9090
expr_cond_two_operand(underlyingElement(this))
9191
}
9292

0 commit comments

Comments
 (0)