[PATCH] -Wcomma, a new warning for questionable uses of the comma operator

Richard Trieu rtrieu at google.com
Thu Jun 12 22:17:53 PDT 2014


Add a note to the warning that it can be silenced by casting the left hand expression to void.
Catch a few more cases involving templates.

http://reviews.llvm.org/D3976

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaOverload.cpp
  test/SemaCXX/warn-comma-operator.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3976.10379.patch
Type: text/x-patch
Size: 12147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140613/9cb4160d/attachment.bin>


More information about the cfe-commits mailing list