[all-commits] [llvm/llvm-project] ab28c1: fix unnecessary warning when using bitand with boo...

Bhuminjay Soni via All-commits all-commits at lists.llvm.org
Mon Mar 18 05:20:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab28c1de23f3880d7d2becf936fe560abe68e020
      https://github.com/llvm/llvm-project/commit/ab28c1de23f3880d7d2becf936fe560abe68e020
  Author: Bhuminjay Soni <Soni5Happy at gmail.com>
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Sema/warn-bitwise-and-bool.c
    M clang/test/Sema/warn-bitwise-or-bool.c

  Log Message:
  -----------
  fix unnecessary warning when using bitand with boolean operators (#81976)

This pull request fixes #77601 where using the `bitand` operator with
boolean operands should not trigger the warning, as it would indicate an
intentional use of bitwise AND rather than a typo or error.

Fixes #77601



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list