[all-commits] [llvm/llvm-project] 1caa66: Fix a false positive in misc-redundant-expression ...

AaronBallman via All-commits all-commits at lists.llvm.org
Wed Oct 30 10:38:37 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1caa66d0759f6bd0851a40645afac8e8a7f84341
      https://github.com/llvm/llvm-project/commit/1caa66d0759f6bd0851a40645afac8e8a7f84341
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2019-10-30 (Wed, 30 Oct 2019)

  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:
  -----------
  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.




More information about the All-commits mailing list