HomePhabricator

[Diagnostics] Warn if ?: with integer constants always evaluates to true

Description

[Diagnostics] Warn if ?: with integer constants always evaluates to true

Extracted from D63082. GCC has this warning under -Wint-in-bool-context, but as noted in the D63082's review, we should put it under TautologicalConstantCompare.

Details

Committed
xbolva00Sep 22 2019, 3:00 PM
Parents
rL372530: [clang] fixing conditional explicit for out-of-line definition PR42980
Branches
Unknown
Tags
Unknown