[PATCH] -Wcomma, a new warning for questionable uses of the comma operator
Richard Trieu
rtrieu at google.com
Tue Mar 3 20:17:24 PST 2015
Updated to be based on newer revision.
Remove most cases of the white list. The only cases that remain are casts to void and the third argument in a for-loop.
http://reviews.llvm.org/D3976
Files:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-comma-operator.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3976.21170.patch
Type: text/x-patch
Size: 14184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150304/302fa638/attachment.bin>
More information about the cfe-commits
mailing list