[all-commits] [llvm/llvm-project] 5e7d0e: Cover cases like (b && c && b) in the redundant ex...

Alexey Romanov via All-commits all-commits at lists.llvm.org
Tue Feb 18 08:44:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e7d0ebf735a8b70f92acd1f91c7c45423e611cc
      https://github.com/llvm/llvm-project/commit/5e7d0ebf735a8b70f92acd1f91c7c45423e611cc
  Author: Alexey Romanov <romanov.alexey1 at huawei.com>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc-redundant-expression.cpp

  Log Message:
  -----------
  Cover cases like (b && c && b) in the redundant expression check.

readability-redundant-expression now detects expressions where a logical
or bitwise operator had equivalent LHS and RHS where the equivalent
operands were separated by more operands.




More information about the All-commits mailing list