Reland "[Clang] Extend -Wbool-operation to warn about bitwise and of bools with side...
authorDávid Bolvanský <david.bolvansky@gmail.com>
Sun, 3 Oct 2021 11:05:09 +0000 (13:05 +0200)
committerDávid Bolvanský <david.bolvansky@gmail.com>
Sun, 3 Oct 2021 11:05:09 +0000 (13:05 +0200)
commitf59cc9542bfb461d16ad12b2cc4be4abbfd9d96e
tree2ca37320ceaba134209e085d87c1685d5ea34632
parentb1fcca38844138d1950e1b34eb2be65b3bfc7352
Reland "[Clang] Extend -Wbool-operation to warn about bitwise and of bools with side effects"

This reverts commit a4933f57f3f0a45e1db1075f7285f0761a80fc06. New warnings were fixed.
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/Misc/warning-wall.c
clang/test/Sema/warn-bitwise-and-bool.c [new file with mode: 0644]
clang/test/Sema/warn-bitwise-or-bool.c [new file with mode: 0644]