Add -Wcomma warning to Clang.

Description

Add -Wcomma warning to Clang.

-Wcomma will detect and warn on most uses of the builtin comma operator. It
currently whitelists the first and third statements of the for-loop. For other
cases, the warning can be silenced by casting the first operand of the comma
operator to void.

Differential Revision: http://reviews.llvm.org/D3976

Details

Committed
rtrieuFeb 18 2016, 3:58 PM
Differential Revision
D3976: -Wcomma, a new warning for questionable uses of the comma operator
Parents
rL261277: Replaced introduced tabs to spaces.
Branches
Unknown
Tags
Unknown