[PATCH] D85097: [Sema] add warning for comparisons like 'x<=y<=z'

Vince Bridgers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 17:59:44 PDT 2020


vabridgers updated this revision to Diff 283780.
vabridgers added a comment.

use source from expression in fixit
s/seperate/separate/
address some chained comparison ambiguities outside of original scope of changes


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85097/new/

https://reviews.llvm.org/D85097

Files:
  clang/docs/DiagnosticsReference.rst
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaExpr.cpp
  clang/test/Misc/warning-wall.c
  clang/test/Sema/warn-compare-op-parentheses.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85097.283780.patch
Type: text/x-patch
Size: 28793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200807/2804d74b/attachment-0001.bin>


More information about the cfe-commits mailing list