Fix a false positive in misc-redundant-expression check
authorAaron Ballman <aaron@aaronballman.com>
Wed, 30 Oct 2019 17:35:20 +0000 (13:35 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 30 Oct 2019 17:38:25 +0000 (13:38 -0400)
commit1caa66d0759f6bd0851a40645afac8e8a7f84341
treedb2f9a20987ea4e9c3f699b012bf3bf922357aa1
parent21d498c9c0f32dcab5bc89ac593aa813b533b43a
Fix a false positive in misc-redundant-expression check

Do not warn for redundant conditional expressions when the true and false
branches are expanded from different macros even when they are defined by
one another.

Patch by Daniel Krupp.
clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/misc-redundant-expression.cpp