[PATCH] D93822: [clang][Sema] Add diagnostics for implicit widening of multiplication result

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 31 08:31:46 PST 2020


lebedev.ri updated this revision to Diff 314188.
lebedev.ri marked 3 inline comments as done.
lebedev.ri added a comment.

- Add test for inverse array subscript expression
- Support it by skipping paren expressions
- Actually ensure that we only diagnose only truly implicit casts, but not implicit casts that are implicit steps of an explicit cast


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93822

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/AST/ASTContext.h
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/Sema.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/Sema/Sema.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/Misc/warning-wall.c
  clang/test/Sema/implicit-widening-of-multiplication-result.c
  clang/test/Sema/implicit-widening-of-pointer-offset-in-array-subscript-expression.c
  clang/test/Sema/implicit-widening-of-pointer-offset.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93822.314188.patch
Type: text/x-patch
Size: 35928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201231/2c955fbc/attachment.bin>


More information about the llvm-commits mailing list