[PATCH] D147844: Emit warning when implicit cast from int to bool happens in an conditional operator expression

NagaChaitanya Vellanki via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 20 14:41:32 PDT 2023


chaitanyav updated this revision to Diff 515492.
chaitanyav added a comment.
Herald added a project: libc++abi.
Herald added a reviewer: libc++abi.

Place parentheses around conditional expression to prevent precedence warnings since -Werror is enabled on build


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147844

Files:
  clang/docs/ReleaseNotes.rst
  clang/lib/Sema/SemaExpr.cpp
  clang/test/Analysis/uninit-vals.c
  clang/test/Sema/integer-overflow.c
  clang/test/Sema/parentheses.c
  clang/test/Sema/parentheses.cpp
  clang/test/SemaCXX/array-bounds.cpp
  clang/test/SemaCXX/integer-overflow.cpp
  libcxx/include/__chrono/duration.h
  libcxxabi/src/cxa_personality.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147844.515492.patch
Type: text/x-patch
Size: 9823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230420/c2199b03/attachment.bin>


More information about the cfe-commits mailing list