[PATCH] D108003: [Clang] Extend -Wbool-operation to warn about bitwise and of bools with side effects

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 29 10:51:25 PDT 2021


xbolva00 updated this revision to Diff 375960.
xbolva00 added a comment.
Herald added subscribers: sstefan1, s.egerton, simoncook, aheejin, dschuff.
Herald added a reviewer: jdoerfert.

Emit note to explain a user how to silence this warning.


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

https://reviews.llvm.org/D108003

Files:
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaChecking.cpp
  clang/p.patch
  clang/test/Sema/warn-bitwise-and-bool.c
  clang/test/Sema/warn-bitwise-or-bool.c



More information about the cfe-commits mailing list