HomePhabricator

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

Authored by xbolva00 on Sep 22 2019, 3:00 PM.

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.

llvm-svn: 372531

Details

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