[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 14:14:09 PST 2018


lebedev.ri updated this revision to Diff 128470.
lebedev.ri added a comment.

Actually update the diagnostic flag :)

I'm going to hold off committing just yet, and wait for @rsmith to sign off.


Repository:
  rC Clang

https://reviews.llvm.org/D41512

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  test/Sema/compare.c
  test/Sema/tautological-constant-compare.c
  test/Sema/tautological-constant-enum-compare.c
  test/Sema/tautological-unsigned-enum-zero-compare.c
  test/Sema/tautological-unsigned-enum-zero-compare.cpp
  test/Sema/tautological-unsigned-zero-compare.c
  test/SemaCXX/compare.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41512.128470.patch
Type: text/x-patch
Size: 11485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180102/da9d9db8/attachment.bin>


More information about the cfe-commits mailing list