[PATCH] D73775: [clang-tidy] Cover cases like (b && c && b) in the redundant expression check
Alexey Romanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 31 04:44:31 PST 2020
alexeyr created this revision.
alexeyr added reviewers: alexfh, etienneb, hgabii.
alexeyr added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
readability-redundant-expression could detect expressions where a logical or bitwise operator had equivalent LHS and RHS, but not ones where equivalent operands were separated by more operands.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73775
Files:
clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/misc-redundant-expression.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73775.241691.patch
Type: text/x-patch
Size: 10499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200131/558e9cf6/attachment-0001.bin>
More information about the cfe-commits
mailing list