Conditional Expressions

Author: LGTM

import cpp

from ConditionalExpr e
where e.getThen().getType() != e.getElse().getType()
select e

Description

Finds conditional expressions of the form `... ? ... : ...` where the types of the resulting expressions differ